Skip to content

fix: correct discarded error handings - #1647

Merged
LinkinStars merged 7 commits into
apache:devfrom
seiyab:error-handling
Oct 21, 2026
Merged

LinkinStars merged 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.

@LinkinStars
LinkinStars merged commit 7af928c into apache:dev Oct 21, 2026
@seiyab
seiyab deleted the error-handling branch October 21, 2026 08:45
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.

2 participants