mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
minor
Former-commit-id: 1747352d45933ad8c8623d8dcfdbcb176ecba50c
This commit is contained in:
@@ -1565,8 +1565,7 @@ func (ctx *context) StopWithError(statusCode int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
ctx.WriteString(err.Error())
|
||||
ctx.StopWithStatus(statusCode)
|
||||
ctx.StopWithText(statusCode, err.Error())
|
||||
}
|
||||
|
||||
// StopWithJSON stops the handlers chain, writes the status code
|
||||
|
||||
Reference in New Issue
Block a user