From ac75f0ed00aa616bec62c271073f0a07a420e847 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 26 Dec 2018 08:59:06 -0600 Subject: [PATCH] don't swallow random exceptions --- eth_p2p/rlpx.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth_p2p/rlpx.nim b/eth_p2p/rlpx.nim index 6d38c2f..ec7c1d0 100644 --- a/eth_p2p/rlpx.nim +++ b/eth_p2p/rlpx.nim @@ -1352,9 +1352,11 @@ proc rlpxConnect*(node: EthereumNode, remote: Node): Future[Peer] {.async.} = except TransportOsError: trace "TransportOsError", err = getCurrentExceptionMsg() except: + let e = getCurrentException() debug "Exception in rlpxConnect", remote, - exc = getCurrentException().name, + exc = e.name, err = getCurrentExceptionMsg() + raise e if not ok: if not isNil(result.transport):