Don't crash hard on P2P daemon errors during the initial connection

This commit is contained in:
Zahary Karadjov 2019-09-11 17:49:43 -04:00
parent 73a8456d67
commit 5152c42c8e
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 2 deletions

View File

@ -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."