aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/repo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 3cd06eba9f..c1f2a0f1e8 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -278,6 +278,7 @@ func Download(ctx *middleware.Context) {
archivePath = path.Join(ctx.Repo.GitRepo.Path, "archives/targz")
archiveType = git.TARGZ
default:
+ log.Trace("Unknown format: %s", uri)
ctx.Error(404)
return
}
@@ -315,7 +316,7 @@ func Download(ctx *middleware.Context) {
return
}
} else {
- ctx.Error(404)
+ ctx.Handle(404, "Download", nil)
return
}