1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00
Former-commit-id: fe2dbe46ac8153ef4db0b5788794bf907b98baad
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-24 21:09:30 +03:00
parent baf68391b5
commit a4efb222cc
4 changed files with 23 additions and 7 deletions

View File

@@ -407,7 +407,11 @@ func (c *ControllerActivator) handlerOf(relPath, methodName string) context.Hand
// c.injector.Container.GetErrorHandler(ctx).HandleError(ctx, err)
// }
c.injector.Container.GetErrorHandler(ctx).HandleError(ctx, err)
return
// allow skipping struct field bindings
// errors by a custom error handler.
if ctx.IsStopped() {
return
}
}
b := ctrl.Interface().(BaseController)