throw a readable Error
This commit is contained in:
parent
cb42dbc42a
commit
797e8f8663
@ -60,6 +60,9 @@ export class EthereumLedgerSigner implements OfflineAminoSigner{
|
||||
}
|
||||
if(e.toString().indexOf('0x6e00')> 0) {
|
||||
throw new Error('Please open Ethereum app on the Ledger!')
|
||||
}
|
||||
if(e.toString().indexOf('0x6511')> 0) {
|
||||
throw new Error('Please open Ethereum app on the Ledger!')
|
||||
}
|
||||
throw e
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user