|
|
|
@ -362,7 +362,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...Reloadable) (err er
|
|
|
|
|
|
|
|
|
|
conf, err := config.LoadFile(filename)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return fmt.Errorf("couldn't load configuration (-config.file=%s): %v", filename, err)
|
|
|
|
|
return fmt.Errorf("couldn't load configuration (--config.file=%s): %v", filename, err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
failed := false
|
|
|
|
@ -373,7 +373,7 @@ func reloadConfig(filename string, logger log.Logger, rls ...Reloadable) (err er
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if failed {
|
|
|
|
|
return fmt.Errorf("one or more errors occurred while applying the new configuration (-config.file=%s)", filename)
|
|
|
|
|
return fmt.Errorf("one or more errors occurred while applying the new configuration (--config.file=%s)", filename)
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|