logos-storage-nim/codex/utils/exceptions.nim

7 lines
176 B
Nim
Raw Normal View History

2023-08-29 12:30:59 +10:00
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