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
Pipeline #31809 passed with stage
in 10 minutes and 30 seconds
...@@ -317,7 +317,11 @@ class DataFormat(object): ...@@ -317,7 +317,11 @@ class DataFormat(object):
""" """
if self.resolved is None: if self.resolved is None:
raise RuntimeError("Cannot prototype while not properly initialized") raise RuntimeError(
"Cannot prototype while not properly initialized\n{}".format(
classname = re.sub(r"[-/]", "_", classname = re.sub(r"[-/]", "_",
if not isinstance(classname, str): if not isinstance(classname, str):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment