Skip to content

Commit 012f940

Browse files
authored
Improve error message for early validation failures
Clarified error message for early validation failures in deployments.
1 parent 8ac049e commit 012f940

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@aws-cdk/toolkit-lib/lib/api/deployments/early-validation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export class EarlyValidationReporter implements ValidationReporter {
2626

2727
return `The template cannot be deployed because of early validation errors, but retrieving more details about those
2828
errors failed (${error}). Make sure you have permissions to call the DescribeEvents API, or re-bootstrap
29-
your environment with the latest version of the CLI (need at least version 30, current version ${currentVersion ?? 'unknown'}).`;
29+
your environment by running 'cdk bootstrap' to update the Bootstrap CDK Toolkit stack.
30+
Bootstrap toolkit stack version 30 or later is needed; current version: ${currentVersion ?? 'unknown'}).`;
3031
}
3132

3233
let message = `ChangeSet '${changeSetName}' on stack '${stackName}' failed early validation`;

0 commit comments

Comments
 (0)