mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-13 01:53:56 +09:00
Output an error when a user runs headscale without noise_private_key_path defined
This commit is contained in:
1 parent
281ae59b5a
commit
ade1b73779
2 files changed
+6
-2
No files matched your search
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user