Log error stack traces

// FREEBIE
This commit is contained in:
lilia 2015-09-23 12:21:20 -07:00
parent 213dbdefd2
commit f6b35ffbfc
2 changed files with 2 additions and 0 deletions

View file

@ -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();

View file

@ -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);
}