Skip to content

Commit 57676cc

Browse files
committed
forever: add command in already running error
1 parent 0e45903 commit 57676cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/forever/forever.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ func runStartAction(cmdWD, cmd string) error {
7373
return err
7474
}
7575

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

0 commit comments

Comments
 (0)