mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-11-28 02:25:56 -05:00
Move serial errors to console
When a serial device is disconnected the user receives two dialog messages indicating there was a serial device error. This can cause confusion since the error message does not clearly indicate what has happened. Instead of alerting the user this will push the message to the console.
This commit is contained in:
parent
a74d56abd6
commit
ed239eb0f0
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ window.ScratchExtensions = new (function () {
|
|||
if (dev) {
|
||||
devices[ext_name] = self;
|
||||
dev.set_error_handler(function (message) {
|
||||
alert('Serial device error\n\nDevice: ' + id + '\nError: ' + message);
|
||||
console.log('Serial device error\nDevice: ' + id + '\nError: ' + message);
|
||||
});
|
||||
}
|
||||
if (readyCallback) readyCallback(d ? self : null);
|
||||
|
|
Loading…
Reference in a new issue