mirror of
https://github.com/kataras/iris.git
synced 2026-01-24 20:35:59 +00:00
replace ioutil with io package and other minor improvements
This commit is contained in:
@@ -92,7 +92,7 @@ func (e err) Dispatch(ctx iris.Context) {
|
||||
// write the status code based on the err's StatusCode.
|
||||
ctx.StatusCode(e.Status)
|
||||
// send to the client the whole object as json
|
||||
_, _ = ctx.JSON(e)
|
||||
_ = ctx.JSON(e)
|
||||
}
|
||||
|
||||
func GetCustomErrorAsDispatcher() err {
|
||||
|
||||
Reference in New Issue
Block a user