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:
Christopher Willis-Ford 2016-05-03 08:55:55 -07:00
parent 66e4a55b74
commit e1109e8ca6

View file

@ -132,8 +132,9 @@ Sequencer.prototype.stepThread = function (thread) {
});
}
catch(e) {
console.error('Exception calling block function',
{opcode: opcode, exception: e});
console.error(
'Exception calling block function for opcode: ' +
opcode + '\n' + e);
} finally {
// Update if the thread has set a yield timer ID
// @todo hack