We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c298521 commit bfd6474Copy full SHA for bfd6474
codex/utils/exceptions.nim
@@ -0,0 +1,7 @@
1
+import std/strformat
2
+
3
+proc msgDetail*(e: ref CatchableError): string =
4
+ var msg = e.msg
5
+ if e.parent != nil:
6
+ msg = fmt"{msg} Inner exception: {e.parent.msg}"
7
+ return msg
0 commit comments