Skip to content

fix: handle unhandled promise rejection in vended CDK main()#409

Merged
notgitika merged 1 commit intoaws:mainfrom
notgitika:fix/cdk-unhandled-promise
Feb 23, 2026
Merged

fix: handle unhandled promise rejection in vended CDK main()#409
notgitika merged 1 commit intoaws:mainfrom
notgitika:fix/cdk-unhandled-promise

Conversation

@notgitika
Copy link
Contributor

Description

Adds a .catch() handler to the bare main() call in the vended cdk/bin/cdk.ts. Without this, any error during config reading or stack construction produces an opaque UnhandledPromiseRejection instead of a clear message.

Closes #408

Type of Change

  • Bug fix

Testing

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

@notgitika notgitika requested a review from a team February 23, 2026 20:09
@github-actions github-actions bot added the size/s PR size: S label Feb 23, 2026
@notgitika notgitika force-pushed the fix/cdk-unhandled-promise branch from 6a1321b to d294572 Compare February 23, 2026 20:16
@github-actions github-actions bot added size/xs PR size: XS and removed size/s PR size: S labels Feb 23, 2026
Copy link
Contributor

@aidandaly24 aidandaly24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@notgitika notgitika merged commit ecaedf8 into aws:main Feb 23, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: unhandled promise rejection in vended CDK main()

2 participants