mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 11:11:53 +01:00
Merge pull request #6349 from gabbyprecious/unlock-error-message#2529
change changepassword and unlock error message
This commit is contained in:
commit
65dc3ef8a6
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user