diff --git a/serde/json/parser.nim b/serde/json/parser.nim index 2228728..caa855c 100644 --- a/serde/json/parser.nim +++ b/serde/json/parser.nim @@ -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)