Skip to content
Snippets Groups Projects
Commit a399051e authored by Jan Semmelink's avatar Jan Semmelink
Browse files

Update error message text

parent 97673fce
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ func NewHandler(fnc interface{}) (handler, error) {
//arg[0] must be a struct for params. It may be an empty struct, but
//all public fields require a json tag which we will use to math the URL param name
if err := validateStructType(fncType.In(0)); err != nil {
return h, errors.Wrapf(err, "second arg %v is not valid params struct type", fncType.In(0))
return h, errors.Wrapf(err, "first arg %v is not valid params struct type", fncType.In(0))
}
h.RequestParamsType = fncType.In(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment