Skip to content

Commit 6a36657

Browse files
authored
update test
Fix error message for deployment validation failures.
1 parent 012f940 commit 6a36657

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@aws-cdk/toolkit-lib/test/api/deployments/deploy-stack.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,8 @@ test('deployStack warns when it cannot get the events in case of early validatio
804804
}),
805805
).rejects.toThrow(`The template cannot be deployed because of early validation errors, but retrieving more details about those
806806
errors failed (Error: AccessDenied). Make sure you have permissions to call the DescribeEvents API, or re-bootstrap
807-
your environment with the latest version of the CLI (need at least version 30, current version 0).`);
807+
your environment by running 'cdk bootstrap' to update the Bootstrap CDK Toolkit stack.
808+
Bootstrap toolkit stack version 30 or later is needed; current version: 0.`);
808809
});
809810

810811
test('deploy not skipped if template did not change but one tag removed', async () => {

0 commit comments

Comments
 (0)