Skip to content

Commit ca28620

Browse files
committed
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 <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 1bcfca0 commit ca28620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func tool(toolName string) string {
6060
} else {
6161
fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", toolName)
6262
}
63-
setExitStatus(3)
63+
setExitStatus(2)
6464
exit()
6565
}
6666
return toolPath

0 commit comments

Comments
 (0)