change changepassword and unlock error message
This commit is contained in:
Oliver Gugger 2022-04-11 17:05:33 +02:00 committed by GitHub
commit 65dc3ef8a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,10 @@ func actionDecorator(f func(*cli.Context) error) func(*cli.Context) error {
// two commands.
if s.Code() == codes.Unimplemented &&
(c.Command.Name == "create" ||
c.Command.Name == "unlock") {
c.Command.Name == "unlock" ||
c.Command.Name == "changepassword" ||
c.Command.Name == "createwatchonly") {
return fmt.Errorf("Wallet is already unlocked")
}