don’t show informer if it’s an auth error

This commit is contained in:
Artur Paikin 2019-04-23 21:57:06 +03:00
parent 6c6531a30a
commit 68b22f3d81

View file

@ -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)
}