fix: cocommit would never ask to create an author file if non was found

This commit is contained in:
Slug-Boi
2026-01-30 16:42:24 +01:00
parent bb30b4bb6c
commit 08c926f2f5
+1 -1
View File
@@ -42,7 +42,7 @@ func Find_authorfile() string {
panic(fmt.Sprintf("Error getting user config dir: %v", err))
}
if _, err := os.Stat(userconf+"/cocommit/authors.json"); os.IsNotExist(err) {
panic(fmt.Sprintf("No author file set, please set the author_file environment variable or create a config file using the command: cocommit config -c"))
return userconf + "/cocommit/authors.json"
} else {
file = userconf + "/cocommit/authors.json"
}