mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-30 13:30:31 +00:00
don’t show informer if it’s an auth error
This commit is contained in:
parent
6c6531a30a
commit
68b22f3d81
1 changed files with 4 additions and 1 deletions
|
|
@ -453,7 +453,10 @@ module.exports = class ProviderView {
|
|||
handleError (error) {
|
||||
const uppy = this.plugin.uppy
|
||||
uppy.log(error.toString())
|
||||
const message = uppy.i18n(error.isAuthError ? 'companionAuthError' : 'companionError')
|
||||
if (error.isAuthError) {
|
||||
return
|
||||
}
|
||||
const message = uppy.i18n('companionError')
|
||||
uppy.info({message: message, details: error.toString()}, 'error', 5000)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue