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
so if you pass in @param("<NAME>", errmsg=...) it would use that errmsg as the error string if param fails in some way, this would allow us to fine tune client facing error messages
The text was updated successfully, but these errors were encountered:
This could be done in call.Param's handle method. Basically do a try/except and then check if there is an errmsg flag, if there is then raise a new ValueError with the error message.
You could also allow minor templating with {value} or something like that and then it will always call format on the error message with certain predefined values (assuming format doesn't fail if it has keywords that aren't in the string)
so if you pass in
@param("<NAME>", errmsg=...)
it would use thaterrmsg
as the error string if param fails in some way, this would allow us to fine tune client facing error messagesThe text was updated successfully, but these errors were encountered: