From c163d53437f4400302ea13d2aefa4d030cf425e1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Aug 2013 09:07:08 -0700 Subject: [PATCH] packer: unknown commands show better on UI --- packer/environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/environment.go b/packer/environment.go index 0cbb8a95b..ee6f443fe 100644 --- a/packer/environment.go +++ b/packer/environment.go @@ -245,7 +245,7 @@ func (e *coreEnvironment) Cli(args []string) (result int, err error) { // If we still don't have a command, show the help. if command == nil { - log.Printf("Environment.CLI: command not found: %s\n", args[0]) + e.ui.Error(fmt.Sprintf("Unknown command: %s\n", args[0])) e.printHelp() return 1, nil }