Skip to content

chore: wrap address book loading errors with %w#742

Closed
bravesasha wants to merge 1 commit intocartesi:mainfrom
bravesasha:patch-1
Closed

chore: wrap address book loading errors with %w#742
bravesasha wants to merge 1 commit intocartesi:mainfrom
bravesasha:patch-1

Conversation

@bravesasha
Copy link

Use Go 1.13+ error wrapping (%w) instead of %v when returning errors from address book loading functions. This preserves the original error and allows callers to use errors.Is / errors.As if needed

@vfusco
Copy link
Collaborator

vfusco commented Mar 10, 2026

Thank you for taking the time to contribute to our project. We truly appreciate your effort in trying to improve our documentation/code. However, per our guidelines, pull requests for simple typos or stylistic changes are not accepted. If you have ideas for broader improvements or new features, please open an issue for discussion or reach out on Cartesi Discord server. Your input is valuable, and we hope to see future contributions!

@vfusco vfusco closed this Mar 10, 2026
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