Fix the UI

This commit is contained in:
Mitchell Hashimoto 2013-05-08 17:01:57 -07:00
parent fd2d8480e1
commit 4b665e39bd
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (Command) Run(env packer.Environment, args []string) int {
log.Printf("Creating build: %s\n", buildName)
build, err := tpl.Build(buildName, env.Builder)
if err != nil {
env.Ui().Error("Failed to create build '%s': \n\n%s\n", buildName, err)
env.Ui().Error("Failed to create build '%s': \n\n%s\n", buildName, err.Error())
return 1
}