mirror of
https://github.com/logos-storage/nim-serde.git
synced 2026-04-18 10:43:09 +00:00
add parent error to parseJson exceptions
This commit is contained in:
parent
bcabc173d4
commit
6522b219f8
@ -11,4 +11,4 @@ proc parseJson*(json: string): ?!JsonNode =
|
||||
try:
|
||||
return stdjson.parseJson(json).catch
|
||||
except Exception as e:
|
||||
return failure newException(JsonParseError, e.msg)
|
||||
return failure newException(JsonParseError, e.msg, e)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user