expose config loading error

This commit is contained in:
kongfei 2022-06-01 18:54:26 +08:00
parent d4e65a2233
commit 994fa8aa95
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func InitLogConfig(configDir string) error {
LogConfig = &Logs{}
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 {