diff --git a/routers/repo/release.go b/routers/repo/release.go index 1845563bcf759..3b8e55f00246e 100644 --- a/routers/repo/release.go +++ b/routers/repo/release.go @@ -134,6 +134,10 @@ func SingleRelease(ctx *context.Context) { release, err := models.GetRelease(ctx.Repo.Repository.ID, ctx.Params("tag")) if err != nil { + if models.IsErrReleaseNotExist(err) { + ctx.NotFound("GetRelease", err) + return + } ctx.ServerError("GetReleasesByRepoID", err) return }