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 @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323* Fixed data schema of ` compas.geometry.Polyline ` , ` compas.geometry.Polygon ` , ` compas.geometry.Pointcloud ` .
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.
26+ * Added ` dtype ` to JSON decoding error message.
2627
2728### Removed
2829
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