From 56e635b45462b15c9b20b344db6cd44d696d4cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerome=20K=C3=BCttner?= Date: Mon, 16 May 2022 13:37:28 +0200 Subject: [PATCH] give more details on existing pidFile error --- cmd/up.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/up.go b/cmd/up.go index 57abb59..0f5565e 100644 --- a/cmd/up.go +++ b/cmd/up.go @@ -3,7 +3,6 @@ package cmd import ( "bytes" "context" - "errors" "fmt" "os" "os/signal" @@ -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) } }