From a9f2040f3f356cd7a2a26036a5115a5ce798081e Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 24 Sep 2017 22:28:06 -0400 Subject: [PATCH] Squash errors on connect (for dev) --- lib/blootstrap/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/blootstrap/index.js b/lib/blootstrap/index.js index 33e7fb0..749c88a 100644 --- a/lib/blootstrap/index.js +++ b/lib/blootstrap/index.js @@ -23,6 +23,11 @@ class Blootstrap { ipc.of.blootstrap_ble.on('disconnect', () => { ipc.log(`Disconnected from the blootstrap_ble service`) }) + ipc.of.blootstrap_ble.on('error', (err) => { + if (err.code === 'EACCES') { + console.log(`Cannot access ipc`) + } + }) }) } /**