diff options
author | Unknwon <u@gogs.io> | 2015-12-21 04:24:11 -0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-21 04:24:11 -0800 |
commit | a49af93fafe824cdd375318d15de420b3ed61e79 (patch) | |
tree | 1508c0bbd9f9caf2c3af8163e4e9abe326093558 /routers/repo/repo.go | |
parent | c62a6b7a1238524225ec9c214dc5eac7da017663 (diff) | |
download | gitea-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.go | 6 |
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 } |