Skip to content

Improve peer ID parse error context and wrap error#3484

Open
bobsingh-dev wants to merge 1 commit intolibp2p:masterfrom
bobsingh-dev:fix/peer-error-wrap
Open

Improve peer ID parse error context and wrap error#3484
bobsingh-dev wants to merge 1 commit intolibp2p:masterfrom
bobsingh-dev:fix/peer-error-wrap

Conversation

@bobsingh-dev
Copy link
Copy Markdown

What does this PR do?

Improve error wrapping and include the peer ID input value in the error message to improve debugging.

Why was this needed?

Including the input improves observability when diagnosing invalid peer IDs. Using %w preserves the error chain.

How was this tested?

go test ./...

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