aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modfetch/codehost/git.go
diff options
context:
space:
mode:
authorTyler Bui-Palsulich <tbp@google.com>2019-04-26 14:49:41 -0400
committerJay Conrod <jayconrod@google.com>2019-04-30 15:03:35 +0000
commit12aec551c4a3dbd0cabc5ec735ffaa43e3bd2659 (patch)
treea1db619f57cf8234d18b31c669b459751631ff8a /src/cmd/go/internal/modfetch/codehost/git.go
parent858064fb01c52e2c8a703854333ea25dff26ee33 (diff)
downloadgo-12aec551c4a3dbd0cabc5ec735ffaa43e3bd2659.tar.gz
go-12aec551c4a3dbd0cabc5ec735ffaa43e3bd2659.zip
cmd/go: say to confirm import path when it's not found
Fixes #31366. Change-Id: Ief26f53e7fe94bedb7db79d3d7130c4cdcec4281 Reviewed-on: https://go-review.googlesource.com/c/go/+/174179 Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modfetch/codehost/git.go')
-rw-r--r--src/cmd/go/internal/modfetch/codehost/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modfetch/codehost/git.go b/src/cmd/go/internal/modfetch/codehost/git.go
index 588e7496cc..2cb6637aae 100644
--- a/src/cmd/go/internal/modfetch/codehost/git.go
+++ b/src/cmd/go/internal/modfetch/codehost/git.go
@@ -166,7 +166,7 @@ func (r *gitRepo) loadRefs() {
if err != nil {
if rerr, ok := err.(*RunError); ok {
if bytes.Contains(rerr.Stderr, []byte("fatal: could not read Username")) {
- rerr.HelpText = "If this is a private repository, see https://golang.org/doc/faq#git_https for additional information."
+ rerr.HelpText = "Confirm the import path was entered correctly.\nIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information."
}
}
r.refsErr = err