fix: invert conversion check

This commit is contained in:
Adrien Marquès 2020-03-29 19:23:02 +02:00
parent 438e308f71
commit 261e25c127
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 0 deletions

View File

@ -125,6 +125,7 @@ func (s spec) checkOutput(fnv reflect.Value) error {
continue
}
if !field.Type.ConvertibleTo(ptype) {
return fmt.Errorf("%s: %w (%s instead of %s)", name, ErrWrongParamTypeFromConfig, field.Type, ptype)
}
}