Skip to content

fix: correct discarded error handings - #1647

Open
seiyab wants to merge 7 commits into
apache:devfrom
seiyab:error-handling
Open

seiyab wants to merge 7 commits into
apache:devfrom
seiyab:error-handling

Conversation

@seiyab

@seiyab seiyab commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Some error handlings look mistakenly discard errors.
This PR fixes them.
c4dd09b and 304ff97 are tests to ensure the fix but I reverted them because this project doesn't verify such minor error handling in tests. You can re-apply them if you need them.
For 01b135a, maybe we cannot reach the error handling. However I consider it's still worth to write as returning error to prevent confusion.


Context
They are found when I evaluate a static analyzer, same as #1640.

This branch has not been deployed

No deployments
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