cmd/lncli: changepassworderror message [skip ci]

This commit is contained in:
gabbyprecious
2022-04-01 15:52:59 +02:00
parent 57840bba36
commit a0b7680424

View File

@@ -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")
}