From 38b1017e1d338b80f3c2e0fe4bf5086252d4debe Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:30:59 +1000 Subject: [PATCH] add missing file --- codex/utils/exceptions.nim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 codex/utils/exceptions.nim diff --git a/codex/utils/exceptions.nim b/codex/utils/exceptions.nim new file mode 100644 index 00000000..4aa2af95 --- /dev/null +++ b/codex/utils/exceptions.nim @@ -0,0 +1,7 @@ +import std/strformat + +proc msgDetail*(e: ref CatchableError): string = + var msg = e.msg + if e.parent != nil: + msg = fmt"{msg} Inner exception: {e.parent.msg}" + return msg \ No newline at end of file