mirror of https://github.com/vacp2p/nim-libp2p.git
add back forgotten message in tryAndWarn
This commit is contained in:
parent
9132f16927
commit
4447d97234
|
@ -61,5 +61,5 @@ template tryAndWarn*(message: static[string]; body: untyped): untyped =
|
|||
except CancelledError as exc:
|
||||
raise exc # TODO: why catch and re-raise?
|
||||
except CatchableError as exc:
|
||||
warn "An exception has ocurred, enable trace logging for details", name = exc.name
|
||||
warn "An exception has ocurred, enable trace logging for details", name = exc.name, msg = message
|
||||
trace "Exception details", exc = exc.msg
|
||||
|
|
Loading…
Reference in New Issue