Skip to content

Add error wrapping to provide better error context for debugging #12177

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deepgolani4
Copy link

@deepgolani4 deepgolani4 commented May 31, 2025

Improve error handling in Go bindings by wrapping FoundationDB errors with descriptive context using fmt.Errorf. This change makes error messages more informative and easier to debug by providing better context for transaction, database, and future operations.

Testing: Verified error handling improvements across all modified files.

Code-Reviewer Section

The general pull request guidelines can be found here.

Please check each of the following things and check all boxes before accepting a PR.

  • The PR has a description, explaining both the problem and the solution.
  • The description mentions which forms of testing were done and the testing seems reasonable.
  • Every function/class/actor that was touched is reasonably well documented.

For Release-Branches

If this PR is made against a release-branch, please also check the following:

  • There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)
  • This change/bugfix is a cherry-pick from the next younger branch (younger release-branch or main if this is the youngest branch)

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