mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
minor: see previous commits
This commit is contained in:
@@ -44,7 +44,7 @@ func CanMakeHandler(tmpl macro.Template) (needsMacroHandler bool) {
|
|||||||
if p.HandleError != nil {
|
if p.HandleError != nil {
|
||||||
// Check for its type.
|
// Check for its type.
|
||||||
if _, ok := p.HandleError.(ParamErrorHandler); !ok {
|
if _, ok := p.HandleError.(ParamErrorHandler); !ok {
|
||||||
panic(fmt.Sprintf("HandleError must be a type of func(iris.Context, error) but got: %T", p.HandleError))
|
panic(fmt.Sprintf("HandleError must be a type of func(iris.Context, int, error) but got: %T", p.HandleError))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user