Improve error output for util function.

This commit is contained in:
Ben Rog-Wilhelm 2022-12-05 02:36:31 -06:00 committed by Ben Rog-Wilhelm
parent 0c632d73b7
commit b7a8297669

View file

@ -13,4 +13,4 @@ def bool_from_string(input: typing.Union[str, bool]) -> bool:
return True
if input.lower() in ("no", "false", "f", "off", "0"):
return False
raise ValueError()
raise ValueError(f"'{input}' is neither a bool nor a recognized string")