nim-ethers/ethers/exceptions.nim

7 lines
184 B
Nim

import ./basics
func msgStack*(error: ref EthersError): string =
var msg = error.msg
if not error.parent.isNil:
msg &= " -- Parent exception: " & error.parent.msg
return msg