diff --git a/server/badge.go b/server/badge.go index acece235..d3b02ace 100644 --- a/server/badge.go +++ b/server/badge.go @@ -2,6 +2,7 @@ package server import ( "fmt" + "log" "github.com/gin-gonic/gin" @@ -42,7 +43,8 @@ func GetBadge(c *gin.Context) { build, err := store.GetBuildLast(c, repo, branch) if err != nil { - c.String(404, badgeNone) + log.Println(err) + c.String(200, badgeNone) return } @@ -56,7 +58,7 @@ func GetBadge(c *gin.Context) { case model.StatusPending, model.StatusRunning: c.String(200, badgeStarted) default: - c.String(404, badgeNone) + c.String(200, badgeNone) } }