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({dataMessage: result.dataMessage});
|
||||||
}
|
}
|
||||||
this.set({sent: true});
|
this.set({sent: true});
|
||||||
this.saveErrors(result.errors);
|
|
||||||
if (result.successfulNumbers.length > 0) {
|
if (result instanceof Error) {
|
||||||
this.sendSyncMessage();
|
this.saveErrors(result);
|
||||||
|
} else {
|
||||||
|
this.saveErrors(result.errors);
|
||||||
|
if (result.successfulNumbers.length > 0) {
|
||||||
|
this.sendSyncMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue