From 5152c42c8e90eda6d79e53090f870b9779366ebf Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 11 Sep 2019 17:49:43 -0400 Subject: [PATCH] Don't crash hard on P2P daemon errors during the initial connection --- beacon_chain/eth2_network.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index f14afd28a..ecdd79c9e 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -226,8 +226,9 @@ else: peer.wasDialed = true await initializeConnection(peer) connected = true - except PeerDisconnected: - error "Failed to connect to bootstrap node", node = bootstrapNode + except CatchableError as err: + error "Failed to connect to bootstrap node", + node = bootstrapNode, err = err.msg if bootstrapNodes.len > 0 and connected == false: fatal "Failed to connect to any bootstrap node. Quitting."