From 6522b219f8f91f5d0cfab02c182613712c9a7132 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:01:38 +1100 Subject: [PATCH] add parent error to parseJson exceptions --- serde/json/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)