cmd/api: point to API docs in all.bash failure

When people add new API and get an all.bash failure,
they often don't know about the API checker at all.
Point to the README in the failure message, to try to
help them find what they need to know.

Change-Id: I6b148ec414d212033b371357a5e8c6ab79bb50a4
Reviewed-on: https://go-review.googlesource.com/c/go/+/449015
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Russ Cox 2022-11-09 08:50:51 -05:00
parent e48fc2665e
commit cb6e4f08c2
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func main() {
)
out, err := cmd.CombinedOutput()
if err != nil {
log.Fatalf("Error running API checker: %v\n%s", err, out)
log.Fatalf("Error running API checker (see $GOROOT/api/README): %v\n%s", err, out)
}
fmt.Print(string(out))
}