From e489ab8ecc36c8b2caeeda662e6d7b57b64e8475 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9my=20Oudompheng?= Date: Thu, 2 Feb 2012 23:52:30 +0100 Subject: [PATCH] cmd/go: fix error message on non-existing tools. R=golang-dev, rsc CC=golang-dev, remy https://golang.org/cl/5617053 --- src/cmd/go/tool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/tool.go b/src/cmd/go/tool.go index b21cd30fbf..e187be380d 100644 --- a/src/cmd/go/tool.go +++ b/src/cmd/go/tool.go @@ -55,7 +55,7 @@ func runTool(cmd *Command, args []string) { switch { case 'a' <= c && c <= 'z', '0' <= c && c <= '9': default: - fmt.Fprintf(os.Stderr, "go tool: bad tool name %q\n", tool) + fmt.Fprintf(os.Stderr, "go tool: bad tool name %q\n", toolName) setExitStatus(2) return } @@ -63,7 +63,7 @@ func runTool(cmd *Command, args []string) { toolPath := tool(toolName) // Give a nice message if there is no tool with that name. if _, err := os.Stat(toolPath); err != nil { - fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", tool) + fmt.Fprintf(os.Stderr, "go tool: no such tool %q\n", toolName) setExitStatus(3) return } -- 2.50.0