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

Improve error handling #44

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Improve error handling #44

merged 3 commits into from
Mar 28, 2024

Conversation

gnalh
Copy link
Contributor

@gnalh gnalh commented Mar 27, 2024

We should always either return exit_success or the underlying exit code. We should not obfuscate it when an unhandled exception occurs.

Copy link

trunk-staging-io bot commented Mar 27, 2024

💊 0 quarantined ✅ 10 passed 🕐 10 new ⋅ (learn more)

docs ⋅ learn more about trunk.io

@gnalh gnalh marked this pull request as ready for review March 27, 2024 20:07
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/runner.rs Show resolved Hide resolved
src/runner.rs Show resolved Hide resolved
src/runner.rs Show resolved Hide resolved
Copy link
Collaborator

@zaycev zaycev left a comment

Choose a reason for hiding this comment

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

LGTM, I would just make sure we are not missing important information when error occurs.

@gnalh gnalh merged commit aaf8163 into main Mar 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants