cmd/go: poor error message for nonmatching go-import tags #41547
Comments
The error text in question comes from here: go/src/cmd/go/internal/vcs/vcs.go Lines 975 to 981 in 9a702fd (The verbose error message was added in CL 25121, released in Go 1.8.) |
There are some other redundancies in that error string that we should eliminate too. (This is another instance of the over-wrapping problem described in my experience report.) |
Change https://golang.org/cl/261777 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?Catalina, MacOS, amd64.
What did you do?
I typed by mistake the wrong import string; I forgot the cmd, and got 1472 characters of this:
Reflowed using fmt, that's:
What did you expect to see?
A shorter, better-formatted error message. This one doesn't even have newlines.
What did you see instead?
A long, poorly-formatted error mess.
The text was updated successfully, but these errors were encountered: