Skip to content

Commit

Permalink
feat: Change the error message to `Ledger Ethereum app closed. Open i…
Browse files Browse the repository at this point in the history
…t to unlock.`
  • Loading branch information
dawnseeker8 committed Jul 12, 2024
1 parent b2505bb commit c75965d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ledger-keyring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ describe('LedgerKeyring', function () {
keyring.setHdPath(`m/44'/60'/0'/0`);
jest.spyOn(bridge, 'getPublicKey').mockRejectedValue('Some error');
await expect(keyring.unlock()).rejects.toThrow(
'Unlock your Ledger device and open the ETH app',
'ULedger Ethereum app closed. Open it to unlock.',
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/ledger-keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class LedgerKeyring extends EventEmitter {
} catch (error) {
throw error instanceof Error
? error
: new Error('Unlock your Ledger device and open the ETH app');
: new Error('Ledger Ethereum app closed. Open it to unlock.');
}

if (updateHdk && payload.chainCode) {
Expand Down

0 comments on commit c75965d

Please sign in to comment.