Skip to content

Commit

Permalink
use options instead of opts in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Sep 21, 2020
1 parent 46995a4 commit 92e60a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/mapping/unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (u *Unmarshaler) processNamedFieldWithValue(field reflect.StructField, valu
options := opts.options()
if len(options) > 0 {
if !stringx.Contains(options, mapValue.(string)) {
return fmt.Errorf(`error: value "%s" for field "%s" is not defined in opts "%v"`,
return fmt.Errorf(`error: value "%s" for field "%s" is not defined in options "%v"`,
mapValue, key, options)
}
}
Expand Down

0 comments on commit 92e60a5

Please sign in to comment.