1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00
Former-commit-id: 1747352d45933ad8c8623d8dcfdbcb176ecba50c
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-04 06:45:14 +03:00
parent af66e7404f
commit 37251c6b00
4 changed files with 10 additions and 9 deletions

View File

@@ -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