From 3685087d8e9d45f1adb58683befb513998b4d25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Wed, 11 Jul 2018 07:04:38 +0200 Subject: [PATCH] Start logging Import errors --- src/components/modals/AddAccounts/steps/03-step-import.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/modals/AddAccounts/steps/03-step-import.js b/src/components/modals/AddAccounts/steps/03-step-import.js index eb6c020a..4d87c137 100644 --- a/src/components/modals/AddAccounts/steps/03-step-import.js +++ b/src/components/modals/AddAccounts/steps/03-step-import.js @@ -1,5 +1,6 @@ // @flow +import logger from 'logger' import invariant from 'invariant' import styled from 'styled-components' import { Trans } from 'react-i18next' @@ -122,7 +123,10 @@ class StepImport extends PureComponent { } }, complete: () => setScanStatus('finished'), - error: err => setScanStatus('error', err), + error: err => { + logger.critical(err) + setScanStatus('error', err) + }, }) } catch (err) { setScanStatus('error', err)