From 4576c6d439438cb05cef926bffb2a0aefa53fdab Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sat, 2 Mar 2019 19:26:51 +0400 Subject: [PATCH] Fail if config file doesn't exist --- context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/context.go b/context/context.go index ae94627..02b597c 100644 --- a/context/context.go +++ b/context/context.go @@ -48,7 +48,7 @@ func (c *Context) InitConfiguration() bool { // Read configuration file into []byte. fileData, err := ioutil.ReadFile(normalizedConfigPath) if err != nil { - c.Logger.Error().Err(err).Msg("Failed to read configuration file") + c.Logger.Fatal().Err(err).Msg("Failed to read configuration file") return false }