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

exit code cleanup #753

Merged
merged 3 commits into from
Feb 7, 2025
Merged

exit code cleanup #753

merged 3 commits into from
Feb 7, 2025

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Feb 4, 2025

- use consistent enums for exit codes
- add disk space check on startup and add OutOfSpace exit code (3)
BrowserCrashed = 10,
InterruptedGraceful = 11,
InterruptedImmediate = 13,
Fatal = 17,
Copy link
Member

@tw4l tw4l Feb 5, 2025

Choose a reason for hiding this comment

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

Looking through the code, a lot of the cases where we use this actually match against the other status codes. Maybe we don't need a generic Fatal exception? We're currently using it as a fallback when there's not a more specific status code passed, but probably we could be more precise in most of those cases.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe this is better handled in #584, on second thought

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think we can add additional statuses via #584, keeping this for backwards compatibility for now.

@ikreymer ikreymer merged commit 5c9d808 into main Feb 7, 2025
4 checks passed
@ikreymer ikreymer deleted the exit-codes-oos branch February 7, 2025 01:54
@ikreymer ikreymer mentioned this pull request Feb 9, 2025
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.

2 participants