mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-25 17:09:50 -05:00
Stringify errors
This commit is contained in:
parent
b9ea6005f8
commit
1cc013ea1b
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ class BLESession extends JSONRPCWebSocket {
|
||||||
|
|
||||||
_sendError (e) {
|
_sendError (e) {
|
||||||
this._connected = false;
|
this._connected = false;
|
||||||
log.error(`BLESession error: ${e}`);
|
log.error(`BLESession error: ${JSON.stringify(e)}`);
|
||||||
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
|
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ class BTSession extends JSONRPCWebSocket {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sendError (e) {
|
_sendError (e) {
|
||||||
log.error(`BLESession error: ${e}`);
|
log.error(`BTSession error: ${JSON.stringify(e)}`);
|
||||||
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
|
this._runtime.emit(this._runtime.constructor.PERIPHERAL_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue