From b812257ba97020e90e7598378b54f737364a1636 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 28 Jul 2019 15:02:09 +0200 Subject: Print errors from config load issues. Currently we /dev/null stdout, if it is a tty. The checkConfigPerms function, as well as the error print were incorrectly writing to stdout and therefore weren't visible to most users. --- aerc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 033de7b..cfd192a 100644 --- a/aerc.go +++ b/aerc.go @@ -135,7 +135,7 @@ func main() { conf, err := config.LoadConfigFromFile(nil, ShareDir) if err != nil { - fmt.Printf("Failed to load config: %v\n", err) + fmt.Fprintf(os.Stderr, "Failed to load config: %v\n", err) os.Exit(1) } -- cgit 1.4.1-2-gfad0