Commit a0009341 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: include the build name in the err/success output

parent 2f98ab20
......@@ -187,10 +187,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
runArtifacts, err := b.Run(ui, env.Cache())
if err != nil {
ui.Error(fmt.Sprintf("Build errored: %s", err))
ui.Error(fmt.Sprintf("Build '%s' errored: %s", name, err))
errors[name] = err
} else {
ui.Say("Build finished.")
ui.Say(fmt.Sprintf("Build '%s' finished.", name))
artifacts[name] = runArtifacts
}
}(b)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment