From 412c84fcd9f40350eeec767b7367d6d1fed0fabb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 2 Mar 2024 17:52:45 -0600 Subject: generate valid DebianVersions() --- gitConfig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitConfig.go') diff --git a/gitConfig.go b/gitConfig.go index ce8834c..595345f 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -2,6 +2,7 @@ package repostatus import ( "bufio" + "errors" "os" "path/filepath" "strings" @@ -84,8 +85,7 @@ func (rs *RepoStatus) readGitConfig() error { log.Log(WARN, "readGitConfig() trying up one directory instead", filename) file, err = os.Open(filename) if err != nil { - panic("couldn't open .git/config") - return nil + return errors.New("couldn't open .git/config") } } defer file.Close() -- cgit v1.2.3