Skip to content

Commit

Permalink
[Transform] remove error translation
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Dec 9, 2020
1 parent 4099aa7 commit 307252b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x-pack/plugins/transform/server/routes/api/error_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,7 @@ function extractErrorMessage({ type, reason, line, col }: EsError): string {
let message = `[${type}] ${reason}`;

if (line !== undefined && col !== undefined) {
message +=
', ' +
i18n.translate('xpack.transform.models.transformService.withColAndLineMessage', {
defaultMessage: 'with line={line} & col={col}',
values: { line, col },
});
message += `, with line=${line} & col=${col}`;
}

return message;
Expand Down

0 comments on commit 307252b

Please sign in to comment.