Fail if config file doesn't exist
This commit is contained in:
parent
96afbedae3
commit
4576c6d439
@ -48,7 +48,7 @@ func (c *Context) InitConfiguration() bool {
|
|||||||
// Read configuration file into []byte.
|
// Read configuration file into []byte.
|
||||||
fileData, err := ioutil.ReadFile(normalizedConfigPath)
|
fileData, err := ioutil.ReadFile(normalizedConfigPath)
|
||||||
if err != nil {
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user