Skip to content

Commit

Permalink
forever: add command in already running error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylevy committed Oct 31, 2022
1 parent 0e45903 commit 57676cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/forever/forever.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ func runStartAction(cmdWD, cmd string) error {
return err
}

if _, processExist := agentConfig.LongRunningProcesses[env.ConfigLongRunningProcessWD(cmdWD)]; processExist {
if cmd, processExist := agentConfig.LongRunningProcesses[env.ConfigLongRunningProcessWD(cmdWD)]; processExist {
return fmt.Errorf(
"a command is already running in current path. Run \"forever stop\" first%s",
"\"%s\" is already running in current path. Run \"forever stop\" first%s",
cmd,
".", // bypass static-check linter
)
}
Expand Down

0 comments on commit 57676cc

Please sign in to comment.