Skip to content

proposal: all: Is there a plan to wrap more errors? #51495

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

Closed
hopehook opened this issue Mar 5, 2022 · 2 comments
Closed

proposal: all: Is there a plan to wrap more errors? #51495

hopehook opened this issue Mar 5, 2022 · 2 comments

Comments

@hopehook
Copy link
Member

hopehook commented Mar 5, 2022

To be honest, the error mechanism of the current go language is still quite confusing, and it is impossible to judge the underlying errors well.

Not sure if there are plans to keep improving the error wrapping mechanism throughout the language.
If there is an overall plan, maybe this problem can be solved faster.

For the user, the completed error wrapping mechanism is indeed the most important.

Here are some related open issues and CLs of package net/http

And more:

@gopherbot gopherbot added this to the Proposal milestone Mar 5, 2022
@mdlayher
Copy link
Member

mdlayher commented Mar 5, 2022

This seems broad and unactionable compared to the individual issues linked here. Closing.

@mdlayher mdlayher closed this as completed Mar 5, 2022
@hopehook
Copy link
Member Author

hopehook commented Mar 5, 2022

This seems broad and unactionable compared to the individual issues linked here. Closing.

This is a friendly suggestion, I hope the go team can take it seriously and raise the priority.

Without an overall proposal, improving it maybe be very slow.

@golang golang locked and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants