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

remove debugerrors #1098

Merged
merged 1 commit into from
Apr 20, 2015
Merged

remove debugerrors #1098

merged 1 commit into from
Apr 20, 2015

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Apr 20, 2015

We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.

@jbenet jbenet added the status/in-progress In progress label Apr 20, 2015
@@ -1,4 +1,5 @@
package assets

Copy link
Member

Choose a reason for hiding this comment

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

lol, gofmt is rather aggressive

@whyrusleeping
Copy link
Member

50% gofmt, 50% removing debugerror. Lets see if the tests pass, then LGTM

@jbenet
Copy link
Member Author

jbenet commented Apr 20, 2015

hmmm need to rebase apparently.

We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.

It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
jbenet added a commit that referenced this pull request Apr 20, 2015
@jbenet jbenet merged commit 7bba800 into master Apr 20, 2015
@jbenet jbenet removed the status/in-progress In progress label Apr 20, 2015
@jbenet jbenet deleted the rm-debugerror branch April 20, 2015 07:55
cryptix added a commit that referenced this pull request Apr 28, 2015
I want to follow this up with a thorough execution of my x/tool/cmd/eg experiments (https://github.com/ipfs/go-ipfs/compare/errRampage)
cryptix added a commit that referenced this pull request Apr 28, 2015
I want to follow this up with a thorough execution of my x/tool/cmd/eg experiments (https://github.com/ipfs/go-ipfs/compare/errRampage)
@cryptix cryptix mentioned this pull request Apr 28, 2015
6 tasks
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