Skip to content

Commit 483c182

Browse files
committed
Merge branch 'main' into ds-datakey-generation-fix
2 parents a4b790c + f864b24 commit 483c182

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

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)