This is an automated email from the ASF dual-hosted git repository.
lostluck pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new f3041e07864 Improve validation error message (#17719)
f3041e07864 is described below
commit f3041e078643abe4f7608a7a11459f81b0d20b3f
Author: Danny McCormick <[email protected]>
AuthorDate: Thu May 19 18:39:28 2022 -0400
Improve validation error message (#17719)
---
sdks/go/pkg/beam/core/graph/fn.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdks/go/pkg/beam/core/graph/fn.go
b/sdks/go/pkg/beam/core/graph/fn.go
index 0dc19e17666..a37397977de 100644
--- a/sdks/go/pkg/beam/core/graph/fn.go
+++ b/sdks/go/pkg/beam/core/graph/fn.go
@@ -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