forked from cerc-io/cosmos-explorer
throw a readable Error
This commit is contained in:
parent
cb42dbc42a
commit
797e8f8663
@ -61,6 +61,9 @@ export class EthereumLedgerSigner implements OfflineAminoSigner{
|
|||||||
if(e.toString().indexOf('0x6e00')> 0) {
|
if(e.toString().indexOf('0x6e00')> 0) {
|
||||||
throw new Error('Please open Ethereum app on the Ledger!')
|
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
|
throw e
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user