Fix missing printf arguments discovered by "go vet"

This commit is contained in:
Jakob Unterwurzacher 2015-11-01 11:56:33 +01:00
parent 76311b60f2
commit 14276c9632
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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()