1

Fail if config file doesn't exist

This commit is contained in:
Vladimir Hodakov 2019-03-02 19:26:51 +04:00
parent 96afbedae3
commit 4576c6d439
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6

View File

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