mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-14 01:09:51 -04:00
Improve error exception report for Android Monitor
Android Monitor doesn't support passing multiple arguments to `console.error`, so this change instead builds a single string for the report.
This commit is contained in:
parent
66e4a55b74
commit
e1109e8ca6
1 changed files with 3 additions and 2 deletions
|
@ -132,8 +132,9 @@ Sequencer.prototype.stepThread = function (thread) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
console.error('Exception calling block function',
|
console.error(
|
||||||
{opcode: opcode, exception: e});
|
'Exception calling block function for opcode: ' +
|
||||||
|
opcode + '\n' + e);
|
||||||
} finally {
|
} finally {
|
||||||
// Update if the thread has set a yield timer ID
|
// Update if the thread has set a yield timer ID
|
||||||
// @todo hack
|
// @todo hack
|
||||||
|
|
Loading…
Reference in a new issue