Skip to content

Commit

Permalink
fix(AWS EventBridge): Addres typos in error messages (#10165)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankon committed Oct 28, 2021
1 parent 3aab5f8 commit ee38f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plugins/aws/package/compile/events/eventBridge/index.js
Expand Up @@ -166,7 +166,7 @@ class AwsCompileEventBridgeEvents {
if (RetryPolicy) {
if (!shouldUseCloudFormation) {
throw new ServerlessError(
'Configuring RetryPolicy is not supported for EventBrigde integration backed by Custom Resources. Please use "provider.eventBridge.useCloudFormation" setting to use native CloudFormation support for EventBridge.',
'Configuring RetryPolicy is not supported for EventBridge integration backed by Custom Resources. Please use "provider.eventBridge.useCloudFormation" setting to use native CloudFormation support for EventBridge.',
'ERROR_INVALID_RETRY_POLICY_TO_EVENT_BUS_CUSTOM_RESOURCE'
);
}
Expand All @@ -180,7 +180,7 @@ class AwsCompileEventBridgeEvents {
if (event.eventBridge.deadLetterQueueArn) {
if (!shouldUseCloudFormation) {
throw new ServerlessError(
'Configuring DeadLetterConfig is not supported for EventBrigde integration backed by Custom Resources. Please use "provider.eventBridge.useCloudFormation" setting to use native CloudFormation support for EventBridge.',
'Configuring DeadLetterConfig is not supported for EventBridge integration backed by Custom Resources. Please use "provider.eventBridge.useCloudFormation" setting to use native CloudFormation support for EventBridge.',
'ERROR_INVALID_DEAD_LETTER_CONFIG_TO_EVENT_BUS_CUSTOM_RESOURCE'
);
}
Expand Down Expand Up @@ -263,7 +263,7 @@ class AwsCompileEventBridgeEvents {
}) {
if (_.isObject(eventBusName)) {
throw new ServerlessError(
'Referencing event bus with CloudFormation intrinsic functions is not supported for EventBrigde integration backed by Custom Resources. Please use `provider.eventBridge.useCloudFormation` setting to use native CloudFormation support for EventBridge.',
'Referencing event bus with CloudFormation intrinsic functions is not supported for EventBridge integration backed by Custom Resources. Please use `provider.eventBridge.useCloudFormation` setting to use native CloudFormation support for EventBridge.',
'ERROR_INVALID_REFERENCE_TO_EVENT_BUS_CUSTOM_RESOURCE'
);
}
Expand Down

0 comments on commit ee38f6a

Please sign in to comment.