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

Handle errors printing like slog json marshaller #60

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Conversation

ldemailly
Copy link
Member

@ldemailly ldemailly commented Apr 3, 2024

use .Error() unless explicit marshaller is found - this will avoid missing the message for a net.OpError read for instance

Noticed in fortio/fortio#913

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (92bd010) to head (b24d820).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          539       550   +11     
=========================================
+ Hits           539       550   +11     

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

@ldemailly ldemailly merged commit c4c7d64 into main Apr 3, 2024
6 checks passed
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.

None yet

1 participant