This is an automated email from the ASF dual-hosted git repository. ibzib 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 e056d73 Include name of missing tag in error message. new 25e6008 Merge pull request #16175 from ibzib/tag-name e056d73 is described below commit e056d73ca8d8f0bab6d0439bfc5f498081319976 Author: Kyle Weaver <kcwea...@google.com> AuthorDate: Wed Dec 8 14:16:33 2021 -0800 Include name of missing tag in error message. --- .../src/main/java/org/apache/beam/sdk/values/PCollectionTuple.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionTuple.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionTuple.java index fef7a01..178644c 100644 --- a/sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionTuple.java +++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionTuple.java @@ -221,7 +221,8 @@ public class PCollectionTuple implements PInput, POutput { @SuppressWarnings("unchecked") PCollection<T> pcollection = (PCollection<T>) pcollectionMap.get(tag); if (pcollection == null) { - throw new IllegalArgumentException("TupleTag not found in this PCollectionTuple tuple"); + throw new IllegalArgumentException( + String.format("TupleTag %s not found in this PCollectionTuple tuple", tag)); } return pcollection; }