diff --git a/app/frontend/actions.js b/app/frontend/actions.js index c370f51549..bb23848157 100644 --- a/app/frontend/actions.js +++ b/app/frontend/actions.js @@ -135,6 +135,12 @@ module.exports = ({setState, getState}) => { setState({ walletLoadingError: { code: 'WalletInitializationError', + params: { + message: + e.name === 'NetworkError' + ? 'failed to fetch data from blockchain explorer' + : undefined, + }, }, loading: false, }) diff --git a/app/frontend/translations.js b/app/frontend/translations.js index 7438a7344c..594d40eeb7 100644 --- a/app/frontend/translations.js +++ b/app/frontend/translations.js @@ -13,7 +13,8 @@ const translations = { SendAmountIsTooBig: () => `Invalid format: Amount cannot exceed ${printAda(Number.MAX_SAFE_INTEGER)}`, InvalidMnemonic: () => 'Invalid mnemonic, check your mnemonic for typos and try again.', - WalletInitializationError: () => 'Error during wallet initialization', + WalletInitializationError: ({message}) => + `Error during wallet initialization${message ? `: ${message}` : ''}`, TransactionRejectedByNetwork: () => 'Submitting the transaction into Cardano network failed.', TransactionRejected: () => 'Transaction rejected while signing.', TrezorRejected: () => 'Operation rejected by the Trezor hardware wallet.',