From 485ea6f14f38cfa5da4fa27865f62fcc7691ffb4 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 10 Feb 2015 23:44:16 -0500 Subject: models: make code change for session issue with SQLite3 #739 --- routers/org/teams.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'routers/org/teams.go') diff --git a/routers/org/teams.go b/routers/org/teams.go index 77a7b6e1..9dd9b8e2 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -138,11 +138,8 @@ func TeamsRepoAction(ctx *middleware.Context) { } if err != nil { - log.Error(3, "Action(%s): %v", ctx.Params(":action"), err) - ctx.JSON(200, map[string]interface{}{ - "ok": false, - "err": err.Error(), - }) + log.Error(3, "Action(%s): '%s' %v", ctx.Params(":action"), ctx.Org.Team.Name, err) + ctx.Handle(500, "TeamsRepoAction", err) return } ctx.Redirect(ctx.Org.OrgLink + "/teams/" + ctx.Org.Team.LowerName + "/repositories") -- cgit v1.2.3