From 30c0f3eea0b2148902c4f4e94c6fa6a63251b665 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 5 Nov 2023 10:03:43 +0200 Subject: log errors from git.Open --- routes/routes.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routes') diff --git a/routes/routes.go b/routes/routes.go index 0cf1c35..daace2f 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -45,6 +45,7 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) { path := filepath.Join(d.c.Repo.ScanPath, dir.Name()) gr, err := git.Open(path, "") if err != nil { + log.Println(err) continue } -- cgit