This repository was archived by the owner on Dec 1, 2021. It is now read-only.
Open
Conversation
When causer.Cause() returns nil or itself, it is the cause.
Member
|
Thank you for raising this PR. I'd like to take some time to understand how
this could change the behavior of existing users of this package.
I would appreciate it if you can help me understand, on pkg#89, not this
PR, your use case, and why this change is necessary, and could your
requirement be handled without changing the operation of Cause?
…On Thu, Dec 21, 2017 at 9:49 PM, Jae Kwon ***@***.***> wrote:
When causer.Cause() returns nil or itself, it is the cause.
Ref: pkg#89 <#89>
------------------------------
You can view, comment on, or merge this pull request online at:
#143
Commit Summary
- Intelligent errors.Cause()
File Changes
- *M* errors.go <https://github.com/pkg/errors/pull/143/files#diff-0>
(18)
Patch Links:
- https://github.com/pkg/errors/pull/143.patch
- https://github.com/pkg/errors/pull/143.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#143>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAcA8drauJ4o8-YDrqCdxTRNCLSNgliks5tCjfSgaJpZM4RJp7b>
.
|
|
I recently ran into an issue that this PR would resolve. I was using the popular github.com/gorilla/securecookie package. This package exports an It turns out that the While I understand the need to think through the implications of changing the behaviour of Thanks |
|
I believe that we accidentally (this is definitely a bug as indicated by the docs) fixed this on our fork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When causer.Cause() returns nil or itself, it is the cause.
Ref: #89