Skip to content

Commit

Permalink
typo originPatternName fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <[email protected]>
  • Loading branch information
sandeshkr419 committed Jun 25, 2024
1 parent fbdb6f6 commit f507270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/grok/src/main/java/org/opensearch/grok/Grok.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ private static void throwExceptionForCircularReference(String patternName, Strin
throwExceptionForCircularReference(patternName, pattern, null, null);
}

private static void throwExceptionForCircularReference(String patternName, String pattern, String originPatterName, List<String> path) {
private static void throwExceptionForCircularReference(String patternName, String pattern, String originPatternName, List<String> path) {
StringBuilder message = new StringBuilder("circular reference in pattern [");
message.append(patternName).append("][").append(pattern).append("]");
if (originPatterName != null) {
message.append(" back to pattern [").append(originPatterName).append("]");
if (originPatternName != null) {
message.append(" back to pattern [").append(originPatternName).append("]");
}
if (path != null && path.size() > 1) {
message.append(" via patterns [").append(String.join("=>", path)).append("]");
Expand Down

0 comments on commit f507270

Please sign in to comment.