Skip to content

GH179: Add generated global exception handling for Cake scripts - #180

Merged
devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-179
Jul 15, 2026
Merged

GH179: Add generated global exception handling for Cake scripts#180
devlead merged 1 commit into
cake-build:developfrom
devlead:feature/gh-179

Conversation

@devlead

@devlead devlead commented Jul 15, 2026

Copy link
Copy Markdown
Member
  • Generate RegisterExceptionHandlers() and call it during service provider bootstrap
  • Handle unhandled and unobserved task exceptions with Spectre.Console formatted output
  • Exit with code 1 on critical unhandled failures
  • Update generator Verify snapshots and add TestApp Test-Exception-Handling target for manual verification
  • fixes Add built-in global exception handling to generated Cake scripts. #179

Example output:
image

…cripts

- Generate `RegisterExceptionHandlers()` and call it during service provider bootstrap
- Handle unhandled and unobserved task exceptions with Spectre.Console formatted output
- Exit with code 1 on critical unhandled failures
- Update generator Verify snapshots and add TestApp `Test-Exception-Handling` target for manual verification
- fixes cake-build#179
@devlead
devlead merged commit 2cac5f5 into cake-build:develop Jul 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add built-in global exception handling to generated Cake scripts.

1 participant