nim-codex/codex/utils/exceptions.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