Skip to content

Commit 20b0bd9

Browse files
committed
go/analysis/unitchecker: update go fix, go vet error message
`go fix` and `go vet` have converged, both invoking the same run function (see go.dev/cl/700795). This CL updates one of the error messages to correctly indicate which tool was invoked. Fixes golang/go#77669 Change-Id: I5e7eab4e6c969528e81cbeb3a3dbe16e4cd6cb51 Reviewed-on: https://go-review.googlesource.com/c/tools/+/747060 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
1 parent 8151966 commit 20b0bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/analysis/unitchecker/unitchecker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Usage of %[1]s:
122122
os.Exit(0)
123123
}
124124
if len(args) != 1 || !strings.HasSuffix(args[0], ".cfg") {
125-
log.Fatalf(`invoking "go tool vet" directly is unsupported; use "go vet"`)
125+
log.Fatalf(`invoking "go tool %[1]s" directly is unsupported; use "go %[1]s"`, progname)
126126
}
127127
Run(args[0], analyzers)
128128
}

0 commit comments

Comments
 (0)