mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
initprovider: fail if a configuration file cannot be found
This commit is contained in:
parent
14196167b0
commit
94ff9d7346
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue