avoid stacktrace on empty config, but I guess this could be improved
This commit is contained in:
parent
82d6e6938a
commit
58dee76f56
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ func initConfig() {
|
|||
/*read config*/
|
||||
config.InstallFolder = filepath.Clean(csConfig.ConfigFolder)
|
||||
config.HubFolder = filepath.Clean(config.configFolder + "/hub/")
|
||||
if csConfig.OutputConfig == nil {
|
||||
log.Fatalf("Missing backend plugin configuration in %s", config.ConfigFilePath)
|
||||
}
|
||||
config.BackendPluginFolder = filepath.Clean(csConfig.OutputConfig.BackendFolder)
|
||||
config.DataFolder = filepath.Clean(csConfig.DataFolder)
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue