From 770b15ee50fb4c4858420be2a97173ae33c2c549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Thu, 5 Jul 2018 17:50:43 +0200 Subject: [PATCH] Drop error called ManagerUnexpectedError --- src/helpers/apps/installApp.js | 3 +-- src/helpers/apps/uninstallApp.js | 3 +-- static/i18n/en/errors.yml | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/helpers/apps/installApp.js b/src/helpers/apps/installApp.js index e3d134ca..20c526bd 100644 --- a/src/helpers/apps/installApp.js +++ b/src/helpers/apps/installApp.js @@ -9,7 +9,6 @@ import type { LedgerScriptParams } from 'helpers/common' import { createCustomErrorClass } from '../errors' -const ManagerUnexpectedError = createCustomErrorClass('ManagerUnexpected') const ManagerNotEnoughSpaceError = createCustomErrorClass('ManagerNotEnoughSpace') const ManagerDeviceLockedError = createCustomErrorClass('ManagerDeviceLocked') const ManagerAppAlreadyInstalledError = createCustomErrorClass('ManagerAppAlreadyInstalled') @@ -27,7 +26,7 @@ function remapError(promise) { case e.message.endsWith('6a83'): throw new ManagerAppRelyOnBTCError() default: - throw new ManagerUnexpectedError(e.message, { msg: e.message }) + throw e } }) } diff --git a/src/helpers/apps/uninstallApp.js b/src/helpers/apps/uninstallApp.js index 41aee470..5dd15af2 100644 --- a/src/helpers/apps/uninstallApp.js +++ b/src/helpers/apps/uninstallApp.js @@ -8,7 +8,6 @@ import { createDeviceSocket } from 'helpers/socket' import type { LedgerScriptParams } from 'helpers/common' import { createCustomErrorClass } from '../errors' -const ManagerUnexpectedError = createCustomErrorClass('ManagerUnexpectedError') const ManagerDeviceLockedError = createCustomErrorClass('ManagerDeviceLocked') const ManagerUninstallBTCDep = createCustomErrorClass('ManagerUninstallBTCDep') @@ -20,7 +19,7 @@ function remapError(promise) { case e.message.endsWith('6a83'): throw new ManagerUninstallBTCDep() default: - throw new ManagerUnexpectedError(e.message, { msg: e.message }) + throw e } }) } diff --git a/static/i18n/en/errors.yml b/static/i18n/en/errors.yml index 95acaa42..793d54a6 100644 --- a/static/i18n/en/errors.yml +++ b/static/i18n/en/errors.yml @@ -65,9 +65,6 @@ ManagerDeviceLocked: ManagerNotEnoughSpace: title: Sorry, insufficient device storage description: Uninstall some apps to increase available storage and try again. -ManagerUnexpected: - title: That's unexpected ({{msg}}) #(Manager: {{msg}}) - description: Please try again. ManagerUninstallBTCDep: title: Sorry, Bitcoin is required # include {{currencyName}} description: First uninstall apps that depend on Bitcoin.