Skip to content

Commit

Permalink
fix boom error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Apr 6, 2020
1 parent af3c067 commit 60e2a55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/server/client/error_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function wrapError(error: any): CustomHttpResponseOptions<ResponseError>
const statusCode = boom.output.statusCode;
return {
body: {
...boom,
message: boom,
...(statusCode !== 500 && error.body ? { attributes: { body: error.body } } : {}),
},
headers: boom.output.headers,
Expand Down

0 comments on commit 60e2a55

Please sign in to comment.