Skip to content

Error handling to reduce the number of possible crash occurrences#784

Merged
GyulyVGC merged 9 commits intomainfrom
error-handling
Apr 17, 2025
Merged

Error handling to reduce the number of possible crash occurrences#784
GyulyVGC merged 9 commits intomainfrom
error-handling

Conversation

@GyulyVGC
Copy link
Owner

Properly handle errors when possible, instead of calling unwrap/expect.

A new trait ErrorLogger has been introduced to log errors to stderr in production, allowing to get information about the error kind and its location in the code without panicking (in development builds it will also panic, to easily allow spotting errors when coding).

@GyulyVGC GyulyVGC added the enhancement New feature, request, or improvement label Apr 17, 2025
@GyulyVGC GyulyVGC added this to the v1.4.0 milestone Apr 17, 2025
@GyulyVGC GyulyVGC self-assigned this Apr 17, 2025
Copy link
Owner Author

@GyulyVGC GyulyVGC left a comment

Choose a reason for hiding this comment

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

🚢

@GyulyVGC GyulyVGC merged commit 0bd552d into main Apr 17, 2025
6 checks passed
@GyulyVGC GyulyVGC deleted the error-handling branch April 17, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant