Skip to content

Commit

Permalink
Simplifying FlowFrameworkException::toXContent
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Palis <[email protected]>
  • Loading branch information
joshpalis committed Nov 3, 2023
1 parent a72904a commit 6b364c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ public RestStatus getRestStatus() {

@Override
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
return builder.startObject().field("error", "Request failed with exception: [" + this.getMessage() + "]").endObject();
return builder.startObject().field("error", this.getMessage()).endObject();
}
}

0 comments on commit 6b364c6

Please sign in to comment.