Skip to content

Commit 1ad2298

Browse files
oioojBryan C. Mills
authored and
Bryan C. Mills
committed
cmd/go/internal/modfile: make error message for module path more clear
Fixes #31775 ` Change-Id: I59c4e90f20d1b31161c259680b48b7be7218bf58 Reviewed-on: https://go-review.googlesource.com/c/go/+/175017 Run-TryBot: Baokun Lee <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 1560264 commit 1ad2298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/internal/modfile/rule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (f *File) add(errs *bytes.Buffer, line *Line, verb string, args []string, f
195195
f.Module = &Module{Syntax: line}
196196
if len(args) != 1 {
197197

198-
fmt.Fprintf(errs, "%s:%d: usage: module module/path [version]\n", f.Syntax.Name, line.Start.Line)
198+
fmt.Fprintf(errs, "%s:%d: usage: module module/path\n", f.Syntax.Name, line.Start.Line)
199199
return
200200
}
201201
s, err := parseString(&args[0])

0 commit comments

Comments
 (0)