We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4619a5 + 1d8edd6 commit 29472efCopy full SHA for 29472ef
src/services/FileItem.js
@@ -64,8 +64,9 @@ export default function __identity($compile, FileLikeObject) {
64
try {
65
this.uploader.uploadItem(this);
66
} catch(e) {
67
- this.uploader._onCompleteItem(this, '', 0, []);
68
- this.uploader._onErrorItem(this, '', 0, []);
+ var message = e.name + ':' + e.message;
+ this.uploader._onCompleteItem(this, message, e.code, []);
69
+ this.uploader._onErrorItem(this, message, e.code, []);
70
}
71
72
/**
@@ -250,4 +251,4 @@ export default function __identity($compile, FileLikeObject) {
250
251
__identity.$inject = [
252
'$compile',
253
'FileLikeObject'
-];
254
+];
0 commit comments