More error logging

This commit is contained in:
lilia 2015-04-09 12:50:11 -07:00
parent c6b0b71383
commit 90c742d57c

View file

@ -105,9 +105,12 @@
extension.trigger('message', message); // notify frontend listeners
});
} else {
if (!(errors instanceof Array)) {
errors = [errors];
}
errors.map(function(e) {
if (e.error && e.error.stack) {
console.log(e.error && e.error.stack);
console.error(e.error.stack);
}
});
throw errors;