1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-19 02:47:04 +00:00

black-box the MakeHandler, works perfectly.

Former-commit-id: d325be0e953efc2f841c69f62233b34d4a58ab62
This commit is contained in:
kataras
2017-11-24 15:10:30 +02:00
parent bfec1d174f
commit 29835d9a8e
5 changed files with 126 additions and 51 deletions

View File

@@ -45,5 +45,6 @@ func (m *Mvc) RegisterService(services ...interface{}) error {
}
func (m *Mvc) Handler(handler interface{}) context.Handler {
return makeHandler(handler, m.binders)
h, _ := MakeHandler(handler, m.binders) // it logs errors already, so on any error the "h" will be nil.
return h
}