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

feat: wrap errors to set headers #387

Merged
merged 1 commit into from
Apr 22, 2024
Merged

feat: wrap errors to set headers #387

merged 1 commit into from
Apr 22, 2024

Conversation

danielgtaylor
Copy link
Owner

This feature uses the new error wrapping capabilities to let you wrap any existing error with additional headers.

Fixes #386.

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.64%. Comparing base (00fc8c3) to head (3daacf1).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #387      +/-   ##
==========================================
+ Coverage   92.60%   92.64%   +0.04%     
==========================================
  Files          21       21              
  Lines        3515     3536      +21     
==========================================
+ Hits         3255     3276      +21     
  Misses        221      221              
  Partials       39       39              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielgtaylor danielgtaylor merged commit be8cf67 into main Apr 22, 2024
5 checks passed
@danielgtaylor danielgtaylor deleted the headers-error branch April 22, 2024 16:01
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.

Setting headers in error response
1 participant