Skip to content

Fixes #60 Add optional fatal error handle so users can intercept errorr before we fail#61

Merged
ncipollo merged 1 commit intomainfrom
ncipollo-issue-60-fatal-error-interceptor
Mar 28, 2026
Merged

Fixes #60 Add optional fatal error handle so users can intercept errorr before we fail#61
ncipollo merged 1 commit intomainfrom
ncipollo-issue-60-fatal-error-interceptor

Conversation

@ncipollo
Copy link
Copy Markdown
Contributor

This will allow users to report the error to their crash reporting system, for example.

@ncipollo ncipollo requested a review from jrosen081 as a code owner March 27, 2026 21:04
Copy link
Copy Markdown
Collaborator

@jrosen081 jrosen081 left a comment

Choose a reason for hiding this comment

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

I guess this means we can write tests for this code (with some hacks probably)

@ncipollo
Copy link
Copy Markdown
Contributor Author

I guess this means we can write tests for this code (with some hacks probably)

Tried that but unfortunately since it needs to early exit it is very difficult to do that without the test throwing a fatal

@ncipollo ncipollo merged commit c6f9c59 into main Mar 28, 2026
1 check passed
@ncipollo ncipollo deleted the ncipollo-issue-60-fatal-error-interceptor branch March 28, 2026 00:12
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