We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5daab4 commit 3136337Copy full SHA for 3136337
lib/hci-socket/hci.js
@@ -622,7 +622,7 @@ Hci.prototype.onSocketData = function(data) {
622
Hci.prototype.onSocketError = function(error) {
623
debug('onSocketError: ' + error.message);
624
625
- if (error.message === 'Operation not permitted') {
+ if (error.code === 'EPERM') {
626
this.emit('stateChange', 'unauthorized');
627
} else if (error.message === 'Network is down') {
628
// no-op
0 commit comments