Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log all unhandled bootstrapper exceptions #1888

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented Jul 5, 2024

During release automation development we realized that unhandled exceptions in the bootstrapper might still be swallowed by the main process, e.g. due to assembly resolution failures. This was fixed in #1873 but with the side-effect that multiple exception traces would now be printed for console bootstrapper package resolution errors, since exceptions were also being routed and printed by the internal bootstrapper console logger.

This PR simplifies error handling to let all exceptions from the console bootstrapper surface naturally, while simultaneously preventing stack trace complexity by flattening the most common case where the AggregateException contains a single inner exception.

Fixes #1804

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jul 5, 2024
@glopesdev glopesdev added this to the 2.8.4 milestone Jul 5, 2024
@glopesdev glopesdev requested a review from PathogenDavid July 5, 2024 22:13
@glopesdev glopesdev merged commit 3454bd1 into bonsai-rx:main Jul 9, 2024
10 checks passed
@glopesdev glopesdev deleted the issue-1804 branch July 9, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console bootstrapper commands should throw full exception stack trace
2 participants