Skip to content

Commit

Permalink
Abort start-up if config file is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Feb 6, 2023
1 parent 9b2dd1b commit 9d459fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ func InitConfig(cfgFile string) {
err := viper.ReadInConfig()
if viper.ConfigFileUsed() != "" && err != nil {
_, _ = fmt.Fprintln(os.Stderr, "FATAL: Navidrome could not open config file: ", err)
os.Exit(1)
}
}

Expand Down

0 comments on commit 9d459fb

Please sign in to comment.