nim-ethers/ethers/exceptions.nim
2023-10-25 10:51:31 +11:00

8 lines
185 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