From 9117004a0ffa289c1ea47377fe192fe578200dc1 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 4 Sep 2018 14:14:17 +0200 Subject: [PATCH] fix(grpc): ensure connection errors show onscreen Fix an issue that was preventing grpc connection errors from showing after a failed connection to a remote node. Re-throw the error from `startLightningWallet` after logging it so that it can be handled properly afterwards. --- app/lib/zap/controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/zap/controller.js b/app/lib/zap/controller.js index 794f867a..2387f280 100644 --- a/app/lib/zap/controller.js +++ b/app/lib/zap/controller.js @@ -284,6 +284,7 @@ class ZapController { this.sendMessage('lightningGrpcActive') } catch (err) { mainLog.warn('Unable to connect to Lighitnng gRPC interface: %o', err) + throw err } }