From: Rob Pike Date: Sun, 16 Oct 2016 18:13:37 +0000 (-0700) Subject: cmd/go: use normal code 2 for 'no such tool' X-Git-Tag: go1.8beta1~860 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ca28620db9392d5aa1002256e41bd066f0cc6377;p=gostls13.git cmd/go: use normal code 2 for 'no such tool' Exit code 3 is unprecedented and inconsistent with other failures here, such as having no tool directory. Fixes #17145 Change-Id: Ie7ed56494d4511a600214666ce3a726d63a8fd8e Reviewed-on: https://go-review.googlesource.com/31253 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/tool.go b/src/cmd/go/tool.go index b829037ec5..38110cfd3f 100644 --- a/src/cmd/go/tool.go +++ b/src/cmd/go/tool.go @@ -60,7 +60,7 @@ func tool(toolName string) string { } else { fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", toolName) } - setExitStatus(3) + setExitStatus(2) exit() } return toolPath