More error logging
This commit is contained in:
parent
c6b0b71383
commit
90c742d57c
1 changed files with 4 additions and 1 deletions
|
@ -105,9 +105,12 @@
|
||||||
extension.trigger('message', message); // notify frontend listeners
|
extension.trigger('message', message); // notify frontend listeners
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (!(errors instanceof Array)) {
|
||||||
|
errors = [errors];
|
||||||
|
}
|
||||||
errors.map(function(e) {
|
errors.map(function(e) {
|
||||||
if (e.error && e.error.stack) {
|
if (e.error && e.error.stack) {
|
||||||
console.log(e.error && e.error.stack);
|
console.error(e.error.stack);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
throw errors;
|
throw errors;
|
||||||
|
|
Loading…
Reference in a new issue