From a080d94cfe5905b802b499312868d3673cd6651b Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Fri, 7 Jul 2023 18:01:23 +0300 Subject: [PATCH] PR feedback --- x-pack/plugins/actions/server/actions_client.test.ts | 4 ++-- x-pack/plugins/actions/server/actions_client.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/actions/server/actions_client.test.ts b/x-pack/plugins/actions/server/actions_client.test.ts index 1c5ecdc175cc9..d553a6080dfd3 100644 --- a/x-pack/plugins/actions/server/actions_client.test.ts +++ b/x-pack/plugins/actions/server/actions_client.test.ts @@ -755,7 +755,7 @@ describe('create()', () => { }, }) ).rejects.toThrowErrorMatchingInlineSnapshot( - `"This mySuperRadTestPreconfiguredId already exist in preconfigured action."` + `"This mySuperRadTestPreconfiguredId already exists in a preconfigured action."` ); }); @@ -2719,7 +2719,7 @@ describe('update()', () => { }, }) ).rejects.toThrowErrorMatchingInlineSnapshot( - `"System action system-connector-.cases is not allowed to update."` + `"System action system-connector-.cases can not be updated."` ); }); }); diff --git a/x-pack/plugins/actions/server/actions_client.ts b/x-pack/plugins/actions/server/actions_client.ts index ce82913cd749c..9a4349601216a 100644 --- a/x-pack/plugins/actions/server/actions_client.ts +++ b/x-pack/plugins/actions/server/actions_client.ts @@ -228,7 +228,7 @@ export class ActionsClient { if (foundInMemoryConnector?.isPreconfigured) { throw Boom.badRequest( i18n.translate('xpack.actions.serverSideErrors.predefinedIdConnectorAlreadyExists', { - defaultMessage: 'This {id} already exist in preconfigured action.', + defaultMessage: 'This {id} already exists in a preconfigured action.', values: { id, }, @@ -295,7 +295,7 @@ export class ActionsClient { if (foundInMemoryConnector?.isSystemAction) { throw Boom.badRequest( i18n.translate('xpack.actions.serverSideErrors.systemActionUpdateForbidden', { - defaultMessage: 'System action {id} is not allowed to update.', + defaultMessage: 'System action {id} can not be updated.', values: { id, },