diff options
| author | Jay Conrod <jayconrod@google.com> | 2021-03-04 10:35:17 -0500 |
|---|---|---|
| committer | Jay Conrod <jayconrod@google.com> | 2021-03-04 22:41:34 +0000 |
| commit | b87e9b9f68f1eb0d685fd250b3b47495710e0059 (patch) | |
| tree | 38eff73215ed1f8124c7d53c95e1e32897d212d0 /src/encoding/json/encode_test.go | |
| parent | a99ff24a26939f30440dd0f06dce426ed5e638ee (diff) | |
| download | go-b87e9b9f68f1eb0d685fd250b3b47495710e0059.tar.xz | |
cmd/go: clarify errors for commands run outside a module
The new error message tells the user what was wrong (no go.mod found)
and directs them to 'go help modules', which links to tutorials.
Fixes #44745
Change-Id: I98f31fec4a8757eb1792b45491519da4c552cb0f
Reviewed-on: https://go-review.googlesource.com/c/go/+/298650
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/encoding/json/encode_test.go')
0 files changed, 0 insertions, 0 deletions
