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) (#5084)

Signed-off-by: Xue Zhou <xuezhou@amazon.com>
(cherry picked from commit d479853)
  • Loading branch information
opensearch-trigger-bot[bot] authored Nov 8, 2022
1 parent f206378 commit 93ee17e
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 93ee17e

Please sign in to comment.