expose config loading error
This commit is contained in:
parent
d4e65a2233
commit
994fa8aa95
|
@ -46,7 +46,7 @@ func InitLogConfig(configDir string) error {
|
||||||
|
|
||||||
LogConfig = &Logs{}
|
LogConfig = &Logs{}
|
||||||
if err := cfg.LoadConfig(configFile, LogConfig); err != nil {
|
if err := cfg.LoadConfig(configFile, LogConfig); err != nil {
|
||||||
return fmt.Errorf("failed to load configs of dir: %s", configDir)
|
return fmt.Errorf("failed to load config: %s, err: %s", configFile, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if Config != nil && Config.Global.PrintConfigs {
|
if Config != nil && Config.Global.PrintConfigs {
|
||||||
|
|
Loading…
Reference in New Issue