File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/neuron-wallet/src/controllers Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Transaction from '../models/chain/transaction'
99import AssetAccountController from './asset-account'
1010import AnyoneCanPayController from './anyone-can-pay'
1111import WalletsController from './wallets'
12- import { MultisigNotSignedNeedError , OfflineSignFailed } from '../exceptions'
12+ import { MultisigNotSignedNeedError , OfflineSignFailed , IncorrectPassword } from '../exceptions'
1313import MultisigConfigModel from '../models/multisig-config'
1414import { getMultisigStatus } from '../utils/multisig'
1515import { generateRPC } from '../utils/ckb-rpc'
@@ -119,6 +119,9 @@ export default class OfflineSignController {
119119 result : signer . toJSON ( ) ,
120120 }
121121 } catch ( err ) {
122+ if ( err . message === 'Incorrect password!' ) {
123+ throw new IncorrectPassword ( )
124+ }
122125 if ( err . code ) {
123126 throw err
124127 }
You can’t perform that action at this time.
0 commit comments