diff options
Diffstat (limited to 'routers/repo/download.go')
-rw-r--r-- | routers/repo/download.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/download.go b/routers/repo/download.go index 78c4b519be..820a98c0dc 100644 --- a/routers/repo/download.go +++ b/routers/repo/download.go @@ -59,13 +59,13 @@ func SingleDownload(ctx *context.Context) { blob, err := ctx.Repo.Commit.GetBlobByPath(ctx.Repo.TreePath) if err != nil { if git.IsErrNotExist(err) { - ctx.Handle(404, "GetBlobByPath", nil) + ctx.NotFound("GetBlobByPath", nil) } else { - ctx.Handle(500, "GetBlobByPath", err) + ctx.ServerError("GetBlobByPath", err) } return } if err = ServeBlob(ctx, blob); err != nil { - ctx.Handle(500, "ServeBlob", err) + ctx.ServerError("ServeBlob", err) } } |