add back forgotten message in tryAndWarn

This commit is contained in:
Giovanni Petrantoni 2020-05-26 15:21:59 +09:00
parent 9132f16927
commit 4447d97234
1 changed files with 1 additions and 1 deletions

View File

@ -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