]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modfile: make error message for module path more clear
authorBaokun Lee <nototon@gmail.com>
Thu, 2 May 2019 17:28:52 +0000 (01:28 +0800)
committerBryan C. Mills <bcmills@google.com>
Mon, 6 May 2019 20:13:38 +0000 (20:13 +0000)
Fixes #31775

`

Change-Id: I59c4e90f20d1b31161c259680b48b7be7218bf58
Reviewed-on: https://go-review.googlesource.com/c/go/+/175017
Run-TryBot: Baokun Lee <nototon@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfile/rule.go

index 0fd5a7146a63985b2f64984f28bf9f85a6f7ff06..8fa4f125a5d67dba77fc4bc6e27eeead20162e30 100644 (file)
@@ -195,7 +195,7 @@ func (f *File) add(errs *bytes.Buffer, line *Line, verb string, args []string, f
                f.Module = &Module{Syntax: line}
                if len(args) != 1 {
 
-                       fmt.Fprintf(errs, "%s:%d: usage: module module/path [version]\n", f.Syntax.Name, line.Start.Line)
+                       fmt.Fprintf(errs, "%s:%d: usage: module module/path\n", f.Syntax.Name, line.Start.Line)
                        return
                }
                s, err := parseString(&args[0])