Skip to content

Commit 423785a

Browse files
authored
Merge pull request nervosnetwork#3325 from nervosnetwork/feat-438
fix: password tip
2 parents 201744b + 9e228a5 commit 423785a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/neuron-wallet/src/controllers/offline-sign.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Transaction from '../models/chain/transaction'
99
import AssetAccountController from './asset-account'
1010
import AnyoneCanPayController from './anyone-can-pay'
1111
import WalletsController from './wallets'
12-
import { MultisigNotSignedNeedError, OfflineSignFailed } from '../exceptions'
12+
import { MultisigNotSignedNeedError, OfflineSignFailed, IncorrectPassword } from '../exceptions'
1313
import MultisigConfigModel from '../models/multisig-config'
1414
import { getMultisigStatus } from '../utils/multisig'
1515
import { 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
}

0 commit comments

Comments
 (0)