]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/api: point to API docs in all.bash failure
authorRuss Cox <rsc@golang.org>
Wed, 9 Nov 2022 13:50:51 +0000 (08:50 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 10 Nov 2022 04:08:52 +0000 (04:08 +0000)
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>
src/cmd/api/run.go

index 1ae629a032230498910ecaa877a59078d482a94b..e17beb001f44bec9ebdbb13579c2aaf18e59dab0 100644 (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))
 }