Skip to content
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

feat: Add Unwrap to PartialError #815

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

rollulus
Copy link
Contributor

@rollulus rollulus commented Aug 26, 2024

This allows PartialError to expose the error it wraps so that it is compatible with Go's error inspection machinery defined in package errors.

"github.com/pressly/goose/v3/internal/check"
)

func TestPartialErrorUnwrap(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mind moving this to provider_test.go, so we can avoid creating a new file?

Otherwise, great idea!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for Goose!

This allows PartialError to expose the error it wraps so that is
compatible with Go's error inspection machinery defined in package
errors.
@mfridman mfridman merged commit 0ad04fe into pressly:master Aug 26, 2024
4 checks passed
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