Better error reporting

Former-commit-id: 5d979b4205ed196b5d5a8b9000ce5658e1dab288 [formerly 82a32c1c4c703d3eff7feca9dc7681883c0fc4ef]
Former-commit-id: 16d64a99a597a87fe4ece204fda4c5eb4c330bc1
This commit is contained in:
Jaifroid 2020-07-17 16:13:19 +01:00
parent 2a7e6a5183
commit 51db12dcad

View File

@ -23,8 +23,8 @@
'use strict'; 'use strict';
// Set a global error handler to prevent app crashes // Set a global error handler to prevent app crashes
window.onerror = function (msg, url) { window.onerror = function (msg, url, line, col, error) {
console.error('Error caught in app [' + url + ']:\n' + msg, msg); console.error('Error caught in app [' + url + ':' + line + ']:\n' + msg, error);
return true; return true;
}; };