change changepassword and unlock error message
This commit is contained in:
Oliver Gugger authored and GitHub committed 2022-04-11 17:05:33 +02:00
commit 65dc3ef8a6
1 file changed
+4 -1
+4 -1
View File
@@ -101,7 +101,10 @@ func actionDecorator(f func(*cli.Context) error) func(*cli.Context) error {
// two commands. // two commands.
if s.Code() == codes.Unimplemented && if s.Code() == codes.Unimplemented &&
(c.Command.Name == "create" || (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") return fmt.Errorf("Wallet is already unlocked")
} }