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