summaryrefslogtreecommitdiffstats
path: root/routers/repo/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index 4ffe5ec345..56c85bf59a 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -77,9 +77,9 @@ func Http(ctx *middleware.Context) {
repoUser, err := models.GetUserByName(username)
if err != nil {
if err == models.ErrUserNotExist {
- ctx.Handle(404, "repo.Http(GetUserByName)", nil)
+ ctx.Handle(404, "GetUserByName", nil)
} else {
- ctx.Handle(500, "repo.Http(GetUserByName)", err)
+ ctx.Handle(500, "GetUserByName", err)
}
return
}
@@ -87,9 +87,9 @@ func Http(ctx *middleware.Context) {
repo, err := models.GetRepositoryByName(repoUser.Id, reponame)
if err != nil {
if err == models.ErrRepoNotExist {
- ctx.Handle(404, "repo.Http(GetRepositoryByName)", nil)
+ ctx.Handle(404, "GetRepositoryByName", nil)
} else {
- ctx.Handle(500, "repo.Http(GetRepositoryByName)", err)
+ ctx.Handle(500, "GetRepositoryByName", err)
}
return
}