Skip to content

Commit b3bccb6

Browse files
cfflsnielstron
andauthored
Update pycardano/serialization.py
Print violating field directly Co-authored-by: Niels Mündler <[email protected]>
1 parent 17bde11 commit b3bccb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def _check_recursive(value, type_hint):
302302
if not _check_recursive(field_value, field_type):
303303
raise TypeError(
304304
f"Field '{field_name}' should be of type {field_type}, "
305-
f"got {type(field_value)} instead."
305+
f"got {repr(field_value)} instead."
306306
)
307307

308308
def to_validated_primitive(self) -> Primitive:

0 commit comments

Comments
 (0)