fix: if author file was not set empty string not caught

This commit is contained in:
Slug-Boi
2025-06-03 17:28:09 +02:00
parent 2686f32184
commit eac0e43023
+3 -1
View File
@@ -18,7 +18,9 @@ func Find_authorfile() string {
cfg, _ := LoadConfig()
cfg.SetGlobalConfig()
}
if ConfigVar.Settings.AuthorFile == "" {
panic("No author file found, please set the author_file in the config file or set the environment variable 'author_file'")
}
return ConfigVar.Settings.AuthorFile
} else {
return os.Getenv("author_file")