|
@@ -150,11 +150,12 @@ module.exports = class Url extends Plugin {
|
|
|
.then((tagFile) => {
|
|
|
this.uppy.log('[Url] Adding remote file')
|
|
|
try {
|
|
|
- this.uppy.addFile(tagFile)
|
|
|
+ return this.uppy.addFile(tagFile)
|
|
|
} catch (err) {
|
|
|
if (!err.isRestriction) {
|
|
|
this.uppy.log(err)
|
|
|
}
|
|
|
+ return err
|
|
|
}
|
|
|
})
|
|
|
.catch((err) => {
|
|
@@ -163,6 +164,7 @@ module.exports = class Url extends Plugin {
|
|
|
message: this.i18n('failedToFetch'),
|
|
|
details: err,
|
|
|
}, 'error', 4000)
|
|
|
+ return err
|
|
|
})
|
|
|
}
|
|
|
|