From 14276c96328a1a1ad2b354c65d8db7fa720559e1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 1 Nov 2015 11:56:33 +0100 Subject: Fix missing printf arguments discovered by "go vet" --- checkdir.go | 2 +- daemonize.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkdir.go b/checkdir.go index b597834..9614d7d 100644 --- a/checkdir.go +++ b/checkdir.go @@ -27,7 +27,7 @@ func checkDir(dir string) error { return err } if !fi.IsDir() { - return fmt.Errorf("%s is not a directory") + return fmt.Errorf("%s is not a directory", dir) } return nil } diff --git a/daemonize.go b/daemonize.go index e93c264..32255ca 100644 --- a/daemonize.go +++ b/daemonize.go @@ -29,7 +29,7 @@ func daemonize() { c.Stdin = os.Stdin err := c.Start() if err != nil { - fmt.Printf("daemonize: starting %s failed: %v\n", name) + fmt.Printf("daemonize: starting %s failed: %v\n", name, err) os.Exit(1) } err = c.Wait() -- cgit v1.2.3