|
@@ -341,8 +341,9 @@ class Uppy {
|
|
|
|
|
|
const onError = (msg) => {
|
|
|
const err = typeof msg === 'object' ? msg : new Error(msg)
|
|
|
- this.log(err, 'warning')
|
|
|
+ this.log(err.message)
|
|
|
this.info(err.message, 'error', 5000)
|
|
|
+ throw err
|
|
|
}
|
|
|
|
|
|
let mappedFile
|
|
@@ -350,7 +351,6 @@ class Uppy {
|
|
|
mappedFile = this.opts.onBeforeFileAdded(file, files)
|
|
|
} catch (err) {
|
|
|
onError(err)
|
|
|
- return
|
|
|
}
|
|
|
|
|
|
if (typeof mappedFile === 'object' && mappedFile) {
|