Fix test failure
// FREEBIE
This commit is contained in:
parent
1c306df61f
commit
569d0655fa
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,6 @@
|
||||||
return promise.then(function() {
|
return promise.then(function() {
|
||||||
this.save({sent: true});
|
this.save({sent: true});
|
||||||
}.bind(this)).catch(function(errors) {
|
}.bind(this)).catch(function(errors) {
|
||||||
this.save({sent: true});
|
|
||||||
if (!(errors instanceof Array)) {
|
if (!(errors instanceof Array)) {
|
||||||
errors = [errors];
|
errors = [errors];
|
||||||
}
|
}
|
||||||
|
@ -151,6 +150,7 @@
|
||||||
console.log(e.reason, e.stack);
|
console.log(e.reason, e.stack);
|
||||||
});
|
});
|
||||||
this.save({
|
this.save({
|
||||||
|
sent: true,
|
||||||
errors : errors.map(function(e) {
|
errors : errors.map(function(e) {
|
||||||
if (e.constructor === Error) {
|
if (e.constructor === Error) {
|
||||||
return _.pick(e, 'name', 'message', 'code', 'number', 'reason');
|
return _.pick(e, 'name', 'message', 'code', 'number', 'reason');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue