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();
|
||||
|
|
|
@ -107,6 +107,7 @@
|
|||
var keyErrors = [];
|
||||
_.each(errors, function(e) {
|
||||
console.log(e);
|
||||
console.log(e.stack);
|
||||
if (e.error.name === 'OutgoingIdentityKeyError') {
|
||||
keyErrors.push(e.error);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue