You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is kinda related with #1, right now the code converts the limit value provided by the user to a Quantity object.
The conversion is done by using the MustParse function, which panics when the user input is wrong.
The code should instead use the ParseQuantity function which returns an error. The code should handle errors and tell the user which input provided was not valid. This allows easier remediation of wrong input by the user.
The text was updated successfully, but these errors were encountered:
This is kinda related with #1, right now the code converts the limit value provided by the user to a
Quantity
object.The conversion is done by using the
MustParse
function, which panics when the user input is wrong.The code should instead use the
ParseQuantity
function which returns an error. The code should handle errors and tell the user which input provided was not valid. This allows easier remediation of wrong input by the user.The text was updated successfully, but these errors were encountered: