Show errors when reading the config file
This commit is contained in:
parent
40b3c4883f
commit
771e60bd07
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ func LoadConfig() {
|
||||||
var err error
|
var err error
|
||||||
ConfigFile, err = goconfig.LoadConfigFile(ConfigPath)
|
ConfigFile, err = goconfig.LoadConfigFile(ConfigPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to load config file %v - using defaults", ConfigPath)
|
log.Printf("Failed to load config file %v - using defaults: %v", ConfigPath, err)
|
||||||
ConfigFile, err = goconfig.LoadConfigFile(os.DevNull)
|
ConfigFile, err = goconfig.LoadConfigFile(os.DevNull)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to read null config file: %v", err)
|
log.Fatalf("Failed to read null config file: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue