More helpful error logging

This commit is contained in:
lilia 2015-04-01 12:53:29 -07:00
parent 9effa85e40
commit c51773ab0e

View file

@ -105,6 +105,11 @@
extension.trigger('message', message); // notify frontend listeners
});
} else {
errors.map(function(e) {
if (e.error && e.error.stack) {
console.log(e.error && e.error.stack);
}
});
throw errors;
}
});