Save single errors returned from send functions
// FREEBIE
This commit is contained in:
parent
2f469835d9
commit
0620f08a7c
1 changed files with 9 additions and 3 deletions
|
@ -153,10 +153,16 @@
|
|||
this.set({dataMessage: result.dataMessage});
|
||||
}
|
||||
this.set({sent: true});
|
||||
this.saveErrors(result.errors);
|
||||
if (result.successfulNumbers.length > 0) {
|
||||
this.sendSyncMessage();
|
||||
|
||||
if (result instanceof Error) {
|
||||
this.saveErrors(result);
|
||||
} else {
|
||||
this.saveErrors(result.errors);
|
||||
if (result.successfulNumbers.length > 0) {
|
||||
this.sendSyncMessage();
|
||||
}
|
||||
}
|
||||
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue