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…
Reference in New Issue