Skip to content
Snippets Groups Projects
Commit 81ac5f7f authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Add more information to type method error if not resolved

parent 8f372b5e
Branches
Tags
1 merge request!56Fix loop dataformat export
Pipeline #31809 passed
......@@ -317,7 +317,11 @@ class DataFormat(object):
"""
if self.resolved is None:
raise RuntimeError("Cannot prototype while not properly initialized")
raise RuntimeError(
"Cannot prototype while not properly initialized\n{}".format(
self.errors
)
)
classname = re.sub(r"[-/]", "_", self.name)
if not isinstance(classname, str):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment