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

feature/default_network_editable
Dan J Miller 3 years ago committed by ryanml
parent 010e661f8b
commit 0e6f1b078d
  1. 1
      ui/store/actions.js

@ -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;

Loading…
Cancel
Save