diff options
author | Unknwon <joe2010xtmf@163.com> | 2015-02-10 23:44:16 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2015-02-10 23:44:16 -0500 |
commit | 485ea6f14f38cfa5da4fa27865f62fcc7691ffb4 (patch) | |
tree | 77be68e9bb6a05fc2e66f6792ed143a2bff8f107 /routers/org/teams.go | |
parent | 28580aee63997e04c9b8136a7a189966b8f6b666 (diff) | |
download | gitea-485ea6f14f38cfa5da4fa27865f62fcc7691ffb4.tar.gz gitea-485ea6f14f38cfa5da4fa27865f62fcc7691ffb4.zip |
models: make code change for session issue with SQLite3 #739
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r-- | routers/org/teams.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go index 77a7b6e13c..9dd9b8e229 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") |