mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-10 13:05:48 +00:00
7 lines
176 B
Nim
7 lines
176 B
Nim
|
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
|