don't swallow random exceptions
This commit is contained in:
parent
bddec91d05
commit
ac75f0ed00
|
@ -1352,9 +1352,11 @@ proc rlpxConnect*(node: EthereumNode, remote: Node): Future[Peer] {.async.} =
|
||||||
except TransportOsError:
|
except TransportOsError:
|
||||||
trace "TransportOsError", err = getCurrentExceptionMsg()
|
trace "TransportOsError", err = getCurrentExceptionMsg()
|
||||||
except:
|
except:
|
||||||
|
let e = getCurrentException()
|
||||||
debug "Exception in rlpxConnect", remote,
|
debug "Exception in rlpxConnect", remote,
|
||||||
exc = getCurrentException().name,
|
exc = e.name,
|
||||||
err = getCurrentExceptionMsg()
|
err = getCurrentExceptionMsg()
|
||||||
|
raise e
|
||||||
|
|
||||||
if not ok:
|
if not ok:
|
||||||
if not isNil(result.transport):
|
if not isNil(result.transport):
|
||||||
|
|
Loading…
Reference in New Issue