Skip to content
Snippets Groups Projects

Better error message

Merged Alexander Schlemmer requested to merge f-better-error-message into dev
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -375,6 +375,10 @@ class Converter(object, metaclass=ABCMeta):
The `type` key in the `definition` defines the Converter class which is being used.
"""
if definition is None:
raise RuntimeError("Definition of converter \"{}\" is "
"empty".format(name))
if "type" not in definition:
raise RuntimeError(
"Type is mandatory for converter entries in CFood definition.")
Loading