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

When errors.Cause returns nil, use the original error value instead #61

Merged
merged 1 commit into from
May 25, 2018
Merged

When errors.Cause returns nil, use the original error value instead #61

merged 1 commit into from
May 25, 2018

Conversation

tanel
Copy link
Contributor

@tanel tanel commented May 25, 2018

When stack trace was enabled, we saw panics on line

exc := raven.NewException(errors.Cause(err), currentStacktrace)

We believe it is because errors.Cause(err) returns nil, if the
error was created using package github.com/juju/errors, not
github.com/pkg/errors

When stack trace was enabled, we saw panics on line

	exc := raven.NewException(errors.Cause(err), currentStacktrace)

We believe it is because errors.Cause(err) returns nil, if the
error was created using package github.com/juju/errors, not
github.com/pkg/errors
@evalphobia evalphobia merged commit b78b274 into evalphobia:master May 25, 2018
@evalphobia
Copy link
Owner

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 82.667% when pulling 5064c48 on wallester:bugfix/use-original-error-when-errors-cause-returns-nil into 57846a8 on evalphobia:master.

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.

None yet

3 participants