Skip to content

Commit 454ee44

Browse files
committed
use FlashError
1 parent 9249d47 commit 454ee44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/repo/pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ func UpdatePullRequest(ctx *context.Context) {
658658
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(issue.Index))
659659
return
660660
}
661-
ctx.ServerError("Update", err)
662-
return
661+
ctx.Flash.Error(err.Error())
662+
ctx.Redirect(ctx.Repo.RepoLink + "/pulls/" + com.ToStr(issue.Index))
663663
}
664664
}
665665

0 commit comments

Comments
 (0)