-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Do not show stack trace when using pkg/error #625
Comments
hi, what if instead the package provides some error handlers in order to let the user decide what to do with the error. Before that change about Where an error handler could detect that this error is stacktraced, thus appropriately handle it. But, this does not really help current users in the sense that they ll need to appropriately return typed error to trigger the appropriate display behavior. That being said, a default error handler might be defined to reproduce old behavior. |
To add some example, 3 kind of error output,
|
Given that this is from last year, I think I'm comfortable closing it 🙂 feel free to re-open / open a new issue / comment in support if there's still interest here! |
This functionality was added in #560, but #558 (comment) points out that this shows the stack trace to the end-user by default which is generally not desirable.
The text was updated successfully, but these errors were encountered: