initprovider: fail if a configuration file cannot be found

This commit is contained in:
Nicola Murino 2020-04-30 16:48:42 +02:00
parent 14196167b0
commit 94ff9d7346

View file

@ -34,6 +34,7 @@ Please take a look at the usage below to customize the options.`,
err := config.LoadConfig(configDir, configFile)
if err != nil {
logger.WarnToConsole("Unable to initialize data provider, config load error: %v", err)
return
}
providerConf := config.GetProviderConf()
logger.DebugToConsole("Initializing provider: %#v config file: %#v", providerConf.Driver, viper.ConfigFileUsed())