From 68b22f3d811fb2afbc28863e095c8ef235e1038d Mon Sep 17 00:00:00 2001 From: Artur Paikin Date: Tue, 23 Apr 2019 21:57:06 +0300 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20show=20informer=20if=20it?= =?UTF-8?q?=E2=80=99s=20an=20auth=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@uppy/provider-views/src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/@uppy/provider-views/src/index.js b/packages/@uppy/provider-views/src/index.js index 60c8e1ad3..3ed07dcb5 100644 --- a/packages/@uppy/provider-views/src/index.js +++ b/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) }