Describe the bug
- Container. GetErrorHandler (ct). HandleError (ct, err) in mvc was called twice consecutively
- When non-pointer parameters are defined in the controller structure, many unexpected errors may occur. For example, POST and DELETE requests may result in EOF, which is similar to the first bug.
To Reproduce
Steps to reproduce the behavior:
- type SomeController struct {
Ctx iris.Context
S service.AkService
E *errorc.Err
}
ak := adminApi.Party("/ak")
akMvc := mvc.New(ak)
akMvc.Register(service.AK, errorc.NewErrBuild("AKControllers"))
akMvc.Handle(new(admin.AK))


twice Errorhandle

second handle error

Desktop (please complete the following information):
iris.Version
Additional context
Add any other context about the problem here.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Ctx iris.Context
S service.AkService
E *errorc.Err
}
ak := adminApi.Party("/ak")
akMvc := mvc.New(ak)
akMvc.Register(service.AK, errorc.NewErrBuild("AKControllers"))
akMvc.Handle(new(admin.AK))
twice Errorhandle
second handle error
Desktop (please complete the following information):
iris.Version
Additional context
Add any other context about the problem here.