diff options
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 } |