Skip to content

Commit

Permalink
Improve validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
damccorm committed May 19, 2022
1 parent da4fcad commit fab8c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/core/graph/fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ func verifyValidNames(fnKind string, fn *Fn, names ...string) error {

for key := range fn.methods {
if !m[key] {
return errors.Errorf("%s: unexpected exported method %v present. Valid methods are: %v", fnKind, key, names)
return errors.Errorf("%s: unexpected exported method %v present on %v. Valid methods are: %v", fnKind, key, fn.Name(), names)
}
}
return nil
Expand Down

0 comments on commit fab8c5d

Please sign in to comment.