Skip to content

Commit

Permalink
Improve concrete error message (apache#22536)
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm authored Jul 29, 2022
1 parent 12088cb commit e5e3cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/go/pkg/beam/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func makeTypedefs(list []TypeDefinition) (map[string]reflect.Type, error) {
if !typex.IsUniversal(v.Var) {
return nil, errors.Errorf("type var %s must be a universal type", v.Var)
}
if !typex.IsConcrete(v.T) {
return nil, errors.Errorf("type value %s must be a concrete type", v.T)
if ok, err := typex.CheckConcrete(v.T); !ok {
return nil, errors.Wrapf(err, "type value %s must be a concrete type", v.T)
}
typedefs[v.Var.Name()] = v.T
}
Expand Down

0 comments on commit e5e3cb2

Please sign in to comment.