commit 10d6a23

Hubert Hirtz  ·  2021-05-01 11:58:45 +0000 UTC
parent 1156da3
Print config error message on stderr
1 files changed,  +1, -1
+1, -1
1@@ -35,7 +35,7 @@ func main() {
2 
3 	cfg, err := senpai.LoadConfigFile(configPath)
4 	if err != nil {
5-		fmt.Printf("failed to load the required configuraiton file at %q: %s\n", configPath, err)
6+		fmt.Fprintf(os.Stderr, "failed to load the required configuraiton file at %q: %s\n", configPath, err)
7 		os.Exit(1)
8 	}
9