nim-ethers/ethers/exceptions.nim

8 lines
185 B
Nim
Raw Normal View History

import ./basics
func msgStack*(error: ref EthersError): string =
var msg = error.msg
if not error.parent.isNil:
msg &= " -- Parent exception: " & error.parent.msg
2023-10-20 18:05:15 +11:00
return msg