From fb6f4121ae905b97bfd8de3f13b9adf91d4081af Mon Sep 17 00:00:00 2001 From: Kaizen Conroy Date: Wed, 2 Aug 2023 11:03:40 -0400 Subject: [PATCH 1/2] new error message --- .../lib/app-staging-synthesizer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts b/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts index 6511808a95395..fe2f69dfd268e 100644 --- a/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts +++ b/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts @@ -257,8 +257,8 @@ export class AppStagingSynthesizer extends StackSynthesizer implements IReusable throw new Error([ 'It is not safe to use AppStagingSynthesizer for both environment-agnostic and environment-aware stacks at the same time.', 'Please either specify environments for all stacks or no stacks in the CDK App.', - `Stacks with environment: ${describeStacks(agnosticStacks)}.`, - `Stacks without environment: ${describeStacks(envAwareStacks)}.`, + `At least these stacks with environment: ${describeStacks(envAwareStacks)}.`, + `At least these Stacks without environment: ${describeStacks(agnosticStacks)}.`, ].join(' ')); } } From eb7b6f9c5cf72bd53a9e7aad72d70f3c63109a05 Mon Sep 17 00:00:00 2001 From: Kaizen Conroy <36202692+kaizencc@users.noreply.github.com> Date: Wed, 2 Aug 2023 11:34:30 -0400 Subject: [PATCH 2/2] Update packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts --- .../lib/app-staging-synthesizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts b/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts index fe2f69dfd268e..7e926d00e6ad0 100644 --- a/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts +++ b/packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts @@ -258,7 +258,7 @@ export class AppStagingSynthesizer extends StackSynthesizer implements IReusable 'It is not safe to use AppStagingSynthesizer for both environment-agnostic and environment-aware stacks at the same time.', 'Please either specify environments for all stacks or no stacks in the CDK App.', `At least these stacks with environment: ${describeStacks(envAwareStacks)}.`, - `At least these Stacks without environment: ${describeStacks(agnosticStacks)}.`, + `At least these stacks without environment: ${describeStacks(agnosticStacks)}.`, ].join(' ')); } }