Skip to content

Commit 7e2f335

Browse files
authored
fix(app-staging-synthesizer): misleading error message about environment-agnostic/aware stacks (#26607)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 4c57f45 commit 7e2f335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@aws-cdk/app-staging-synthesizer-alpha/lib/app-staging-synthesizer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ export class AppStagingSynthesizer extends StackSynthesizer implements IReusable
257257
throw new Error([
258258
'It is not safe to use AppStagingSynthesizer for both environment-agnostic and environment-aware stacks at the same time.',
259259
'Please either specify environments for all stacks or no stacks in the CDK App.',
260-
`Stacks with environment: ${describeStacks(agnosticStacks)}.`,
261-
`Stacks without environment: ${describeStacks(envAwareStacks)}.`,
260+
`At least these stacks with environment: ${describeStacks(envAwareStacks)}.`,
261+
`At least these stacks without environment: ${describeStacks(agnosticStacks)}.`,
262262
].join(' '));
263263
}
264264
}

0 commit comments

Comments
 (0)