Browse Source

minor: see previous commits

pull/1729/head
Gerasimos (Makis) Maropoulos 5 months ago
parent
commit
5ccd80a6cd
No known key found for this signature in database GPG Key ID: A771A828097B36C7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      macro/handler/handler.go

+ 1
- 1
macro/handler/handler.go View File

@@ -44,7 +44,7 @@ func CanMakeHandler(tmpl macro.Template) (needsMacroHandler bool) {
if p.HandleError != nil {
// Check for its type.
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


Loading…
Cancel
Save