don't swallow random exceptions

This commit is contained in:
Jacek Sieka 2018-12-26 08:59:06 -06:00
parent bddec91d05
commit ac75f0ed00
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 3 additions and 1 deletions

View File

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