Skip to content

Fix failure to check error result from BuildEventsJSONFromTransaction()#616

Merged
cjonas9 merged 1 commit intomainfrom
error-checking-bug
Feb 27, 2026
Merged

Fix failure to check error result from BuildEventsJSONFromTransaction()#616
cjonas9 merged 1 commit intomainfrom
error-checking-bug

Conversation

@cjonas9
Copy link
Contributor

@cjonas9 cjonas9 commented Feb 25, 2026

What

Fixes a nil == nil error checking bug.

Why

An error value is assigned to convErr, but the stale/confirmed-nil variable err is checked instead. This leads to never checking the return status of BuildEventsJSONFromTransaction() in the getTransactions endpoint, which can plausibly return an error.

Known limitations

N/A

@cjonas9 cjonas9 added the bug Something isn't working label Feb 25, 2026
@cjonas9 cjonas9 marked this pull request as ready for review February 25, 2026 19:59
Copilot AI review requested due to automatic review settings February 25, 2026 19:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incorrect error handling in the getTransactions endpoint by checking the actual error returned from BuildEventsJSONFromTransaction().

Changes:

  • Replace a stale err check with convErr after calling BuildEventsJSONFromTransaction(tx).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cjonas9 cjonas9 requested a review from a team February 25, 2026 20:11
@Shaptic
Copy link
Contributor

Shaptic commented Feb 27, 2026

Nice catch!

@cjonas9 cjonas9 merged commit 1a9a97b into main Feb 27, 2026
43 of 45 checks passed
@cjonas9 cjonas9 deleted the error-checking-bug branch February 27, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants