Improve error messages around draft attachments

This commit is contained in:
Francis Lachapelle
2017-01-06 16:12:42 -05:00
parent 5ec7ad54bb
commit 8404de758b
4 changed files with 10 additions and 4 deletions

View File

@@ -52,9 +52,11 @@
onErrorItem: function(item, response, status, headers) {
$mdToast.show(
$mdToast.simple()
.content(l('Error while uploading the file \"%{0}\":', item.file.name))
.content(l('Error while uploading the file \"%{0}\":', item.file.name) +
' ' + (response.message? l(response.message) : ''))
.position('top right')
.hideDelay(3000));
.action(l('OK'))
.hideDelay(false));
this.removeFromQueue(item);
//console.debug(item); console.debug('error = ' + JSON.stringify(response, undefined, 2));
}