add missing file

This commit is contained in:
Eric 2023-08-29 12:30:59 +10:00
parent 320164c2c0
commit 38b1017e1d
No known key found for this signature in database

View File

@ -0,0 +1,7 @@
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