Skip to content

Fix/error wrap envelope#3485

Open
bobsingh-dev wants to merge 2 commits intolibp2p:masterfrom
bobsingh-dev:fix/error-wrap-envelope
Open

Fix/error wrap envelope#3485
bobsingh-dev wants to merge 2 commits intolibp2p:masterfrom
bobsingh-dev:fix/error-wrap-envelope

Conversation

@bobsingh-dev
Copy link
Copy Markdown

What does this PR do?

Wraps error using %w instead of %v to allow proper error unwrapping.

Why is this needed?

Using %w allows callers to use errors.Is and errors.As.

How to test?

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