... instead of InternalServerError by macaron
This commit is contained in:
parent
096aa18249
commit
49d113945f
3 changed files with 5 additions and 5 deletions
|
@ -1105,7 +1105,7 @@ func ViewIssue(ctx *context.Context) {
|
||||||
iw.IssueID = issue.ID
|
iw.IssueID = issue.ID
|
||||||
iw.IsWatching, err = models.CheckIssueWatch(ctx.User, issue)
|
iw.IsWatching, err = models.CheckIssueWatch(ctx.User, issue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.InternalServerError(err)
|
ctx.ServerError("CheckIssueWatch", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -353,7 +353,7 @@ func DeleteProjectBoard(ctx *context.Context) {
|
||||||
|
|
||||||
pb, err := models.GetProjectBoard(ctx.ParamsInt64(":boardID"))
|
pb, err := models.GetProjectBoard(ctx.ParamsInt64(":boardID"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.InternalServerError(err)
|
ctx.ServerError("GetProjectBoard", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if pb.ProjectID != ctx.ParamsInt64(":id") {
|
if pb.ProjectID != ctx.ParamsInt64(":id") {
|
||||||
|
@ -443,7 +443,7 @@ func EditProjectBoardTitle(ctx *context.Context, form auth.EditProjectBoardTitle
|
||||||
|
|
||||||
board, err := models.GetProjectBoard(ctx.ParamsInt64(":boardID"))
|
board, err := models.GetProjectBoard(ctx.ParamsInt64(":boardID"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.InternalServerError(err)
|
ctx.ServerError("GetProjectBoard", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if board.ProjectID != ctx.ParamsInt64(":id") {
|
if board.ProjectID != ctx.ParamsInt64(":id") {
|
||||||
|
|
|
@ -696,11 +696,11 @@ func UpdatePullRequest(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := issue.PullRequest.LoadBaseRepo(); err != nil {
|
if err := issue.PullRequest.LoadBaseRepo(); err != nil {
|
||||||
ctx.InternalServerError(err)
|
ctx.ServerError("LoadBaseRepo", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := issue.PullRequest.LoadHeadRepo(); err != nil {
|
if err := issue.PullRequest.LoadHeadRepo(); err != nil {
|
||||||
ctx.InternalServerError(err)
|
ctx.ServerError("LoadHeadRepo", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue