1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 04:51:56 +00:00

mvc: give the end-developer the option to skip an error through the HandleError method

relative to: https://github.com/kataras/iris/issues/1628#issuecomment-691668764
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-13 16:03:20 +03:00
parent 7431fcc9cf
commit 99fd50bf9d
3 changed files with 53 additions and 1 deletions

View File

@@ -118,7 +118,12 @@ func makeHandler(fn interface{}, c *Container, paramsCount int) context.Handler
// }
c.GetErrorHandler(ctx).HandleError(ctx, err)
return
// return [13 Sep 2020, commented that in order to be able to
// give end-developer the option not only to handle the error
// but to skip it if necessary, example:
// read form, unknown field, continue without StopWith,
// the binder should bind the method's input argument and continue
// without errors. See `mvc.TestErrorHandlerContinue` test.]
}
// If ~an error status code is set or~ execution has stopped