Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Jul 7, 2023
1 parent 01f15e1 commit a080d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/actions/server/actions_client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ describe('create()', () => {
},
})
).rejects.toThrowErrorMatchingInlineSnapshot(
`"This mySuperRadTestPreconfiguredId already exist in preconfigured action."`
`"This mySuperRadTestPreconfiguredId already exists in a preconfigured action."`
);
});

Expand Down Expand Up @@ -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."`
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/actions/server/actions_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit a080d94

Please sign in to comment.