fix: invert conversion check
This commit is contained in:
parent
438e308f71
commit
261e25c127
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue