throw a readable Error

This commit is contained in:
liangping committed 2022-08-08 06:48:37 +08:00
1 parent cb42dbc42a
commit 797e8f8663
1 file changed
+3
+3
View File
@@ -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
})