|
|
|
@ -391,7 +391,8 @@ func ReadConfigFile(c *cli.Context, log *zerolog.Logger) (settings *configFileSe
|
|
|
|
|
log.Debug().Msgf("Loading configuration from %s", configFile)
|
|
|
|
|
file, err := os.Open(configFile)
|
|
|
|
|
if err != nil {
|
|
|
|
|
if os.IsNotExist(err) {
|
|
|
|
|
// If does not exist and config file was not specificly specified then return ErrNoConfigFile found.
|
|
|
|
|
if os.IsNotExist(err) && !c.IsSet("config") {
|
|
|
|
|
err = ErrNoConfigFile
|
|
|
|
|
}
|
|
|
|
|
return nil, "", err
|
|
|
|
|