mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Throw, and not just display, ledgerDeviceOpenFailureMessage on failed to open device error in ledger connect flow (#12613)
This commit is contained in:
parent
17b64e94fc
commit
87ab272a5a
@ -441,6 +441,7 @@ export function connectHardware(deviceName, page, hdPath, t) {
|
|||||||
error.message.match('Failed to open the device')
|
error.message.match('Failed to open the device')
|
||||||
) {
|
) {
|
||||||
dispatch(displayWarning(t('ledgerDeviceOpenFailureMessage')));
|
dispatch(displayWarning(t('ledgerDeviceOpenFailureMessage')));
|
||||||
|
throw new Error(t('ledgerDeviceOpenFailureMessage'));
|
||||||
} else {
|
} else {
|
||||||
dispatch(displayWarning(error.message));
|
dispatch(displayWarning(error.message));
|
||||||
throw error;
|
throw error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user