From 4d647c8944eb42504a714e57e97f244ed6344722 Mon Sep 17 00:00:00 2001 From: Johanan Liebermann Date: Sat, 24 Jun 2017 17:55:48 +0300 Subject: [PATCH] Print err instead of home When 'home' can't be determined it doesn't make sense to print it. The value of 'err' should be printed instead. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3a9ec28..e249c1b 100644 --- a/README.md +++ b/README.md @@ -337,7 +337,7 @@ func initConfig() { // Find home directory. home, err := homedir.Dir() if err != nil { - fmt.Println(home) + fmt.Println(err) os.Exit(1) }