From 0fdba3762d352740eeb22c82b3f402a0008bd1eb Mon Sep 17 00:00:00 2001 From: Chris Grieger Date: Thu, 11 Oct 2018 10:53:34 +0200 Subject: [PATCH] Fix compilation error in pid.go --- pid.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pid.go b/pid.go index 5cf0a82..6ea2ae7 100644 --- a/pid.go +++ b/pid.go @@ -29,7 +29,7 @@ func CreatePidfile(pidFile string) { defer f.Close() if pidBytes, err := ioutil.ReadAll(f); err != nil { - log.Fatalf("Failed to read from pidfile %v") + log.Fatalf("Failed to read from pidfile %v", err) } else { if len(pidBytes) == 0 { goto foo @@ -52,10 +52,10 @@ func CreatePidfile(pidFile string) { foo: if err = f.Truncate(0); err != nil { - log.Fatalf("Failed to truncate pidfile", err) + log.Fatalf("Failed to truncate pidfile %v", err) } if _, err = f.Seek(0, 0); err != nil { - log.Fatalf("Failed to seek pidfile", err) + log.Fatalf("Failed to seek pidfile %v", err) } _, err = fmt.Fprintf(f, "%d", os.Getpid())