Stringify errors

This commit is contained in:
Eric Rosenbaum 2018-07-02 10:35:50 -04:00 committed by Ray Schamp
parent b9ea6005f8
commit 1cc013ea1b
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ class BLESession extends JSONRPCWebSocket {
_sendError (e) {
this._connected = false;
log.error(`BLESession error: ${e}`);
log.error(`BLESession error: ${JSON.stringify(e)}`);
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
}
}

View file

@ -108,7 +108,7 @@ class BTSession extends JSONRPCWebSocket {
}
_sendError (e) {
log.error(`BLESession error: ${e}`);
log.error(`BTSession error: ${JSON.stringify(e)}`);
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
}
}