Skip to content

Commit

Permalink
Adding line breaks to make the messages more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Feb 25, 2021
1 parent 108c861 commit 543f807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/case/server/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class CaseClientHandler implements CaseClient {
throw createCaseError({
message: `Failed to update alerts status using client ids: ${JSON.stringify(
args.ids
)} indices: ${JSON.stringify([...args.indices])} status: ${args.status} ${error}`,
)} \nindices: ${JSON.stringify([...args.indices])} \nstatus: ${args.status}: ${error}`,
error,
logger: this.logger,
});
Expand Down Expand Up @@ -220,7 +220,7 @@ export class CaseClientHandler implements CaseClient {
throw createCaseError({
message: `Failed to get alerts using client ids: ${JSON.stringify(
args.ids
)} indices: ${JSON.stringify([...args.indices])}: ${error}`,
)} \nindices: ${JSON.stringify([...args.indices])}: ${error}`,
error,
logger: this.logger,
});
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/case/server/routes/api/cases/get_case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function initGetCaseApi({ router, logger }: RouteDeps) {
});
} catch (error) {
logger.error(
`Failed to retrieve case in route case id: ${request.params.case_id} include comments: ${request.query.includeComments} include sub comments: ${request.query.includeSubCaseComments}: ${error}`
`Failed to retrieve case in route case id: ${request.params.case_id} \ninclude comments: ${request.query.includeComments} \ninclude sub comments: ${request.query.includeSubCaseComments}: ${error}`
);
return response.customError(wrapError(error));
}
Expand Down

0 comments on commit 543f807

Please sign in to comment.