mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +00:00
Add proper error for lock
This commit is contained in:
parent
bea9a26e3d
commit
d8075dae28
@ -356,7 +356,11 @@ impl Command for LockCommand {
|
|||||||
|
|
||||||
fn exec(&self, args: &[&str], lightclient: &LightClient) -> String {
|
fn exec(&self, args: &[&str], lightclient: &LightClient) -> String {
|
||||||
if args.len() != 0 {
|
if args.len() != 0 {
|
||||||
return self.help();
|
let mut h = vec![];
|
||||||
|
h.push("Extra arguments to lock. Did you mean 'encrypt'?");
|
||||||
|
h.push("");
|
||||||
|
|
||||||
|
return format!("{}\n{}", h.join("\n"), self.help());
|
||||||
}
|
}
|
||||||
|
|
||||||
match lightclient.wallet.write().unwrap().lock() {
|
match lightclient.wallet.write().unwrap().lock() {
|
||||||
|
Loading…
Reference in New Issue
Block a user