mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
minor
This commit is contained in:
parent
9dc356c1d8
commit
d1a1dacaff
|
@ -841,7 +841,7 @@ func (ctx *Context) StopWithPlainError(statusCode int, err error) {
|
||||||
// it will also fire the specified error code handler.
|
// it will also fire the specified error code handler.
|
||||||
func (ctx *Context) StopWithJSON(statusCode int, jsonObject interface{}) error {
|
func (ctx *Context) StopWithJSON(statusCode int, jsonObject interface{}) error {
|
||||||
ctx.StopWithStatus(statusCode)
|
ctx.StopWithStatus(statusCode)
|
||||||
return ctx.writeJSON(jsonObject, nil) // do not modify - see errors.DefaultContextErrorHandler.
|
return ctx.writeJSON(jsonObject, &DefaultJSONOptions) // do not modify - see errors.DefaultContextErrorHandler.
|
||||||
}
|
}
|
||||||
|
|
||||||
// StopWithProblem stops the handlers chain, writes the status code
|
// StopWithProblem stops the handlers chain, writes the status code
|
||||||
|
|
Loading…
Reference in New Issue
Block a user