-
Notifications
You must be signed in to change notification settings - Fork 106
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
move from standard errors to xerrors #2259
Comments
In fact we need to do the inverse: only |
FYI, there is also https://github.com/JavierZunzunegui/zerrors which is stable, see discussion on golang. |
I also stumbled upon this one: https://github.com/cockroachdb/errors |
Oh my - they grow like the ulcers in my stomach when I work on typescript!
Please add your vote: |
@tharvik why |
I meant the But yeah, I prefer the basic golang's |
Hmm - when debugging, I like having a list of methods and files where the error got passed up to. It helps me to faster dig into where the problem might actually be happening. If I just have the context, a la:
I first have to search for each context, decide if it's actually a problem, and then move on. If I have
I can directly scan the methods and decide where to jump in... |
Then the contextes aren't helpful/detailed/relevant enough :P That's mostly a matter of taste IMO, it is a small preference for me, so, your call :) |
Just to add my grain of salt, this is exactly what I think and said back then when we choose to move to xerrors. If your context is well written (ie. never do a |
Even though go 1.13 included some new features into the standard
errors
package, the trace feature available inxerrors
is not there.For this reason all
errors.New
messages should be replaced withxerrors.New
messages.The text was updated successfully, but these errors were encountered: