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

Add record error handling to sample code #27

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

lpsinger
Copy link
Member

Consumer.consume() reports error messages by returning records with message.error() set. Without this error handling, the user's code is likely to raise an exception when it attempts to decode the value as if it was a normal record.

See also nasa-gcn/gcn-email#116.

`Consumer.consume()` reports error messages by returning records
with `message.error()` set. Without this error handling, the user's
code is likely to raise an exception when it attempts to decode the
value as if it was a normal record.

See also nasa-gcn/gcn-email#116.
@lpsinger lpsinger added bug Something isn't working documentation Improvements or additions to documentation labels Aug 20, 2023
@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (91a5e5c) 77.04% compared to head (4aa4abc) 77.04%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   77.04%   77.04%           
=======================================
  Files           7        7           
  Lines         122      122           
=======================================
  Hits           94       94           
  Misses         28       28           

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

@dakota002 dakota002 merged commit 082cae5 into nasa-gcn:main Aug 21, 2023
18 checks passed
@lpsinger lpsinger deleted the check-for-message-error branch August 21, 2023 18:39
Vidushi-GitHub pushed a commit to Vidushi-GitHub/gcn.nasa.gov that referenced this pull request Oct 11, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants