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

cmd/go/internal/modload: refactor error handling #35862

jayconrod opened this issue Nov 26, 2019 · 0 comments


Copy link

@jayconrod jayconrod commented Nov 26, 2019

A number of exported functions in modload call base.Errorf and base.Fatalf. Instead of printing to stderr and exiting, functions in this package should return errors (ideally structured errors). This will make commands with non-standard error handling like go list -e, go build -n, and go mod download -json easier to implement.

@jayconrod jayconrod added this to the Go1.15 milestone Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.