[blivet:master 15/16] Change Size so that it takes a single value parameter.
Anne Mulhern
amulhern at redhat.com
Fri May 2 13:55:33 UTC 2014
> + value = Decimal(size.convertTo("b"))
> else:
> - raise SizeParamsError("missing bytes= or spec=")
> + raise ValueError("invalid value for size")
What about appending the content of the value variable to the error message ?
Could be handy when debugging some garbage being passed to the Size constructor by mistake.
Done.
- mulhern
More information about the anaconda-patches
mailing list