Log error stack traces
// FREEBIE
This commit is contained in:
parent
213dbdefd2
commit
f6b35ffbfc
2 changed files with 2 additions and 0 deletions
|
@ -142,6 +142,7 @@
|
|||
function onError(ev) {
|
||||
var e = ev.error;
|
||||
console.log(e);
|
||||
console.log(e.stack);
|
||||
|
||||
if (e.name === 'HTTPError' && (e.code == 401 || e.code == 403)) {
|
||||
extension.install();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue