summaryrefslogtreecommitdiffstats
path: root/routes/routes.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-11-05 10:03:43 +0200
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2023-11-05 10:04:37 +0200
commit30c0f3eea0b2148902c4f4e94c6fa6a63251b665 (patch)
tree672e1948a7dadc47b7964bef36f144779a553ece /routes/routes.go
parent8f9e7f14ff7ef0fef4a4e828e49ee347c72b94d2 (diff)
downloadlegit-30c0f3eea0b2148902c4f4e94c6fa6a63251b665.tar.gz
legit-30c0f3eea0b2148902c4f4e94c6fa6a63251b665.tar.bz2
legit-30c0f3eea0b2148902c4f4e94c6fa6a63251b665.zip
log errors from git.Open
Diffstat (limited to 'routes/routes.go')
-rw-r--r--routes/routes.go1
1 files changed, 1 insertions, 0 deletions
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
}