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

fix: properly set error on panic recovery #168

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

danielgtaylor
Copy link
Owner

Related to #125, this bug prevented the error from getting returned which meant no non-zero exit code was ever set for panics. Now every panic should result in an exit code of 1.

I'm leaving the linked issue open because of the feature request for an option to exit non-zero for 3xx/4xx/5xx status codes for easier scripting.

@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Merging #168 (6d5a3ba) into main (d60e6d9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #168   +/-   ##
=======================================
  Coverage   74.88%   74.89%           
=======================================
  Files          25       25           
  Lines        3389     3390    +1     
=======================================
+ Hits         2538     2539    +1     
  Misses        654      654           
  Partials      197      197           
Impacted Files Coverage Δ
cli/cli.go 71.17% <100.00%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d60e6d9...6d5a3ba. Read the comment docs.

@danielgtaylor danielgtaylor merged commit c6a3394 into main Jan 18, 2023
@danielgtaylor danielgtaylor deleted the fix-recover-err branch January 18, 2023 06:23
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.

1 participant