Squash errors on connect (for dev)

This commit is contained in:
mmcwilliams 2017-09-24 22:28:06 -04:00
parent 1b51b50185
commit a9f2040f3f
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ class Blootstrap {
ipc.of.blootstrap_ble.on('disconnect', () => { ipc.of.blootstrap_ble.on('disconnect', () => {
ipc.log(`Disconnected from the blootstrap_ble service`) ipc.log(`Disconnected from the blootstrap_ble service`)
}) })
ipc.of.blootstrap_ble.on('error', (err) => {
if (err.code === 'EACCES') {
console.log(`Cannot access ipc`)
}
})
}) })
} }
/** /**