From a2d3f89c7b136780f0ca0400dec3c93c9370df8c Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 10 Dec 2021 13:24:38 -0800 Subject: add lock messages --- weed/shell/commands.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'weed/shell/commands.go') diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 6b614c159..02c0af59e 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -70,11 +70,12 @@ func (ce *CommandEnv) isDirectory(path string) bool { } -func (ce *CommandEnv) confirmIsLocked() error { +func (ce *CommandEnv) confirmIsLocked(args []string) error { if ce.locker.IsLocking() { return nil } + ce.locker.SetMessage(fmt.Sprintf("%v", args)) return fmt.Errorf("need to run \"lock\" first to continue") -- cgit v1.2.3