1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Throw, and not just display, ledgerDeviceOpenFailureMessage on failed to open device error in ledger connect flow (#12613)

This commit is contained in:
Dan J Miller 2021-11-07 21:07:15 -03:30 committed by GitHub
parent 17b64e94fc
commit 87ab272a5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -441,6 +441,7 @@ export function connectHardware(deviceName, page, hdPath, t) {
error.message.match('Failed to open the device')
) {
dispatch(displayWarning(t('ledgerDeviceOpenFailureMessage')));
throw new Error(t('ledgerDeviceOpenFailureMessage'));
} else {
dispatch(displayWarning(error.message));
throw error;