Creating account requires unlocked manager - err
This commit is contained in:
parent
fbe92830c1
commit
84675ec9b8
1 changed files with 5 additions and 1 deletions
|
@ -1891,7 +1891,11 @@ func CreateNewAccount(w *wallet.Wallet, chainSvr *chain.Client, icmd btcjson.Cmd
|
|||
|
||||
_, err = w.Manager.NewAccount(cmd.Account)
|
||||
if isManagerLockedError(err) {
|
||||
return nil, btcjson.ErrWalletUnlockNeeded
|
||||
return nil, btcjson.Error{
|
||||
Code: btcjson.ErrWalletUnlockNeeded.Code,
|
||||
Message: "Creating an account requires the wallet to be unlocked. " +
|
||||
"Enter the wallet passphrase with walletpassphrase to unlock",
|
||||
}
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue