Skip to content

Commit

Permalink
feat F1bonacc1#198: Distinguish between stopped and nonexistent proce…
Browse files Browse the repository at this point in the history
…sses
  • Loading branch information
F1bonacc1 committed Aug 9, 2024
1 parent cf49a0d commit c039f38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/project_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ func (p *ProjectRunner) StopProcess(name string) error {
log.Info().Msgf("Stopping %s", name)
proc := p.getRunningProcess(name)
if proc == nil {
if _, ok := p.project.Processes[name]; !ok {
log.Error().Msgf("Process %s does not exist", name)
return fmt.Errorf("process %s does not exist", name)
}
log.Error().Msgf("Process %s is not running", name)
return fmt.Errorf("process %s is not running", name)
}
Expand Down

0 comments on commit c039f38

Please sign in to comment.