mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-12 01:34:10 +00:00
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:
|
except CancelledError as exc:
|
||||||
raise exc # TODO: why catch and re-raise?
|
raise exc # TODO: why catch and re-raise?
|
||||||
except CatchableError as exc:
|
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
|
trace "Exception details", exc = exc.msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user