From 4447d97234d7de45d859081760e72d1f84ef5794 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Tue, 26 May 2020 15:21:59 +0900 Subject: [PATCH] add back forgotten message in tryAndWarn --- libp2p/errors.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/errors.nim b/libp2p/errors.nim index 06edd31e3..6572f005f 100644 --- a/libp2p/errors.nim +++ b/libp2p/errors.nim @@ -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