Output an error when a user runs headscale without noise_private_key_path defined

This commit is contained in:
Juan Font Alonso committed 2022-08-14 12:35:14 +02:00
1 parent 281ae59b5a
commit ade1b73779
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -28,12 +28,12 @@ func initConfig() {
if cfgFile != "" {
err := headscale.LoadConfig(cfgFile, true)
if err != nil {
log.Fatal().Caller().Err(err)
log.Fatal().Caller().Err(err).Msgf("Error loading config file %s", cfgFile)
}
} else {
err := headscale.LoadConfig("", false)
if err != nil {
log.Fatal().Caller().Err(err)
log.Fatal().Caller().Err(err).Msgf("Error loading config")
}
}