File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424* Fixed ` Configuration.from_data ` to be backward-compatible with JSON data generated before ` compas 1.3.0 ` .
2525* Changed ` compas_rhino.drawing.draw_breps ` to assume provided polygon is closed and automatically add missing corner to polycurve constructor.
2626* Changed conversion of edges and faces to uniques keys for the data dicts to use the string representation of a sorted tuple of identifiers.
27+ * Added ` dtype ` to JSON decoding error message.
2728
2829### Removed
2930
Original file line number Diff line number Diff 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' ])
You can’t perform that action at this time.
0 commit comments