From 08c926f2f55266163203ef6b675e9f608f59b759 Mon Sep 17 00:00:00 2001 From: Slug-Boi Date: Fri, 30 Jan 2026 16:42:24 +0100 Subject: [PATCH] fix: cocommit would never ask to create an author file if non was found --- src/cmd/utils/author_file_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/utils/author_file_utils.go b/src/cmd/utils/author_file_utils.go index a020dec..dd61248 100644 --- a/src/cmd/utils/author_file_utils.go +++ b/src/cmd/utils/author_file_utils.go @@ -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" }