Skip to content

Commit aafe3fa

Browse files
committed
add dtype to error message
1 parent dba1c61 commit aafe3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compas/data/encoders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def object_hook(self, o):
9797
raise DecoderError("The data type of the object should be in the following format: '{}/{}'".format(o.__class__.__module__, o.__class__.__name__))
9898

9999
except ImportError:
100-
raise DecoderError("The module of the data type can't be found.")
100+
raise DecoderError("The module of the data type can't be found: {}.".format(o['dtype']))
101101

102102
except AttributeError:
103-
raise DecoderError("The data type can't be found in the specified module.")
103+
raise DecoderError("The data type can't be found in the specified module: {}.".format(o['dtype']))
104104

105105
return cls.from_data(o['value'])

0 commit comments

Comments
 (0)