mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-23 22:05:50 +08:00
Merge e59a68deb76f9177412b8f89f2522af9348366d1 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d
This commit is contained in:
commit
084c5c3fd3
@ -1053,7 +1053,7 @@ func (c *Context) Render(code int, r render.Render) {
|
|||||||
if err := r.Render(c.Writer); err != nil {
|
if err := r.Render(c.Writer); err != nil {
|
||||||
// Pushing error to c.Errors
|
// Pushing error to c.Errors
|
||||||
_ = c.Error(err)
|
_ = c.Error(err)
|
||||||
c.Abort()
|
c.AbortWithStatus(500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user