summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-21 04:24:11 -0800
committerUnknwon <u@gogs.io>2015-12-21 04:24:11 -0800
commita49af93fafe824cdd375318d15de420b3ed61e79 (patch)
tree1508c0bbd9f9caf2c3af8163e4e9abe326093558 /routers/repo/repo.go
parentc62a6b7a1238524225ec9c214dc5eac7da017663 (diff)
downloadgitea-a49af93fafe824cdd375318d15de420b3ed61e79.tar.gz
gitea-a49af93fafe824cdd375318d15de420b3ed61e79.zip
#1692 APIs: Users Followers
- User profile un/follow - List user's followers/following
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index c58d256a72..2879599744 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -244,11 +244,7 @@ func Action(ctx *middleware.Context) {
}
if err != nil {
- log.Error(4, "Action(%s): %v", ctx.Params(":action"), err)
- ctx.JSON(200, map[string]interface{}{
- "ok": false,
- "err": err.Error(),
- })
+ ctx.Handle(500, fmt.Sprintf("Action (%s)", ctx.Params(":action")), err)
return
}