We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0185e91 commit 8325468Copy full SHA for 8325468
src/modules/select/wallets/ledger.ts
@@ -206,8 +206,10 @@ async function ledgerProvider(options: {
206
disconnect()
207
}
208
},
209
- error: console.log,
210
- complete: console.log
+ error: (error: any) => {
+ throw new Error(error)
211
+ },
212
+ complete: () => {}
213
214
215
if (CustomLedgerTransport) {
@@ -243,7 +245,9 @@ async function ledgerProvider(options: {
243
245
244
246
eth = new Eth(transport)
247
} catch (error) {
- throw new Error('Error connecting to Ledger wallet')
248
+ throw new Error(
249
+ 'An error occurred when trying to connect to your Ledger wallet'
250
+ )
251
252
253
0 commit comments