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.
This commit is contained in:
Johanan Liebermann 2017-06-24 17:55:48 +03:00 committed by Albert Nigmatzianov
parent 6471e3de04
commit 4d647c8944

View file

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