Skip to content

Commit

Permalink
Change the output error message back to use OpenSearchException in th…
Browse files Browse the repository at this point in the history
…e cause chain (#5081)

Signed-off-by: Xue Zhou <[email protected]>
(cherry picked from commit d479853)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
github-actions[bot] committed Nov 4, 2022
1 parent 771d7f1 commit 31905d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ public static void generateFailureXContent(XContentBuilder builder, Params param
}
t = t.getCause();
}
builder.field(ERROR, ExceptionsHelper.summaryMessage(e));
builder.field(ERROR, ExceptionsHelper.summaryMessage(t != null ? t : e));
return;
}

Expand Down

0 comments on commit 31905d1

Please sign in to comment.