Skip to content

Commit

Permalink
fix(app-staging-synthesizer): misleading error message about environm…
Browse files Browse the repository at this point in the history
…ent-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*
  • Loading branch information
kaizencc authored Aug 2, 2023
1 parent 4c57f45 commit 7e2f335
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '));
}
}
Expand Down

0 comments on commit 7e2f335

Please sign in to comment.