mirror of
https://github.com/status-im/nim-eth-p2p.git
synced 2025-01-13 00:04:31 +00:00
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:
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user