Browse Source

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

Artur Paikin 6 years ago
parent
commit
68b22f3d81
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/@uppy/provider-views/src/index.js

+ 4 - 1
packages/@uppy/provider-views/src/index.js

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