go/go
Heschi Kreinick d8a2a07971 go/packages: improve go invocation errors
Rather than coming up with an ad-hoc error message, use the friendly
errors from the gocommand package. I noticed this because the latter
is missing the verb.

I *think* this is generally an improvement; instead of seeing a massive
command line, users just see the actual error from the go command. Even
if it's not, I'd rather improve the single source of the error than play
whack-a-mole.

Change-Id: Ib110eaac6c3984e617339cf14cffe3b59f33591b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/287033
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-02-01 17:07:00 +00:00
..
analysis go/analysis/passes/fieldalignment: delete doc style comments in fix 2021-01-25 18:11:30 +00:00
ast all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
buildutil all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
callgraph all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
cfg all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00
expect all: update dependencies in go.mod file 2020-07-06 23:19:48 +00:00
gccgoexportdata all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
gcexportdata all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
internal all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00
loader go/loader: loosen a test assertion on go/types error messages 2020-11-05 00:16:34 +00:00
packages go/packages: improve go invocation errors 2021-02-01 17:07:00 +00:00
pointer all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00
ssa copyright: test that all files in the repo have copyright notices 2021-01-11 22:19:46 +00:00
types all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
vcs all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00