From f3041e078643abe4f7608a7a11459f81b0d20b3f Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Thu, 19 May 2022 18:39:28 -0400 Subject: [PATCH] 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 0dc19e176665..a37397977de1 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