Browse Source
Merge pull request #1038 from gre/report-scan-errors
Start logging Import errors
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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<StepProps> { |
|
|
|
} |
|
|
|
}, |
|
|
|
complete: () => setScanStatus('finished'), |
|
|
|
error: err => setScanStatus('error', err), |
|
|
|
error: err => { |
|
|
|
logger.critical(err) |
|
|
|
setScanStatus('error', err) |
|
|
|
}, |
|
|
|
}) |
|
|
|
} catch (err) { |
|
|
|
setScanStatus('error', err) |
|
|
|