From a49af93fafe824cdd375318d15de420b3ed61e79 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 21 Dec 2015 04:24:11 -0800 Subject: #1692 APIs: Users Followers - User profile un/follow - List user's followers/following --- routers/repo/repo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'routers/repo/repo.go') 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 } -- cgit v1.2.3