From 96364e3f2940dfd32da27970ac10873f75ece7bc Mon Sep 17 00:00:00 2001
From: Liz Rice <liz@lizrice.com>
Date: Thu, 22 Jun 2017 15:34:01 +0100
Subject: [PATCH] =?UTF-8?q?Error=20if=20the=20config=20file=20can=E2=80=99?=
 =?UTF-8?q?t=20be=20found?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 cmd/root.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/root.go b/cmd/root.go
index 2a02906..bd8a832 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -98,5 +98,8 @@ func initConfig() {
 	// If a config file is found, read it in.
 	if err := viper.ReadInConfig(); err == nil {
 		colorPrint(check.INFO, fmt.Sprintf("Using config file: %s\n", viper.ConfigFileUsed()))
+	} else {
+		colorPrint(check.FAIL, fmt.Sprintf("Faied to read config file: %v\n", err))
+		os.Exit(1)
 	}
 }
-- 
GitLab