Skip to content

Commit

Permalink
include member name/type in field errors (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 authored May 21, 2020
1 parent a5c7298 commit a4cb8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func parseField(f reflect.StructField) (fd *Field, tag *strucTag, err error) {
if defTypeOk {
fd.Type = fd.defType
} else {
err = errors.New("struc: Could not find field type.")
err = errors.New(fmt.Sprintf("struc: Could not resolve field '%v' type '%v'.", f.Name, f.Type))
}
}
return
Expand Down

0 comments on commit a4cb8d3

Please sign in to comment.