Skip to content

Commit bfd6474

Browse files
committed
add missing file
1 parent c298521 commit bfd6474

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

codex/utils/exceptions.nim

+7
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)