Informative message on lock error
This commit is contained in:
@@ -124,7 +124,7 @@ module Kamal::Cli
|
||||
rescue SSHKit::Runner::ExecuteError => e
|
||||
if e.message =~ /cannot create directory/
|
||||
on(KAMAL.primary_host) { puts capture_with_debug(*KAMAL.lock.status) }
|
||||
raise LockError, "Deploy lock found"
|
||||
raise LockError, "Deploy lock found. See https://kamal-deploy.org/docs/commands#checking-and-setting-the-lock"
|
||||
else
|
||||
raise e
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user