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 <xuezhou@amazon.com>
(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] authored and andrross committed Nov 8, 2022
1 parent 877f891 commit e76d2a5
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 e76d2a5

Please sign in to comment.