Skip to content

Commit

Permalink
give more details on existing pidFile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmw committed May 16, 2022
1 parent 0b60e19 commit 56e635b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"os/signal"
Expand Down Expand Up @@ -133,7 +132,7 @@ func writePidFile() error {
}
if stats, err := os.Stat(pidFile); err == nil {
if stats.Size() > 0 {
return errors.New("pidFile already exists")
return fmt.Errorf("pidFile %q already exists", pidFile)
}
}

Expand Down

0 comments on commit 56e635b

Please sign in to comment.