From 9d459fbd0a1bcc25ac3989185061b1a96c0a7383 Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 6 Feb 2023 13:00:07 -0500 Subject: [PATCH] Abort start-up if config file is invalid --- conf/configuration.go | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/configuration.go b/conf/configuration.go index 7471af811..24d33cd40 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -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) } }