Skip to content

Errors Next - #1463

Merged
technoweenie merged 6 commits into
masterfrom
errors-next
Aug 18, 2016
Merged

technoweenie merged 6 commits into
masterfrom
errors-next

Conversation

@ttaylorr

Copy link
Copy Markdown
Contributor

This pull-request uses the github.com/pkg/errors package as a replacement for the old wrappedError type that previously existed in the errutil package.

github.com/pkg/errors gives us the same sort of wrapping that we previously enjoyed, but it puts the onus on a third-party dependency. We still have to keep the wrappedError type around for now, since pkg/errors doesn't support any sort of context map[string]interface{}, but my plan is to remove that type in a future PR by either:

a. Dropping it (+ support for contexts) entirely, or:
b. Only using it where we need contextual data

/cc @technoweenie

@technoweenie

Copy link
Copy Markdown
Contributor

This looks good to me. I think we should merge this and then audit the error wrapping call sites (similar to c5036f6) to ensure it's not writing awkward error messages.

@ttaylorr

Copy link
Copy Markdown
Contributor Author

I think we should merge this and then audit the error wrapping call sites

Let's do it! 😄

@technoweenie
technoweenie merged commit 74a228f into master Aug 18, 2016
@technoweenie
technoweenie deleted the errors-next branch August 18, 2016 17:05
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