command/build: include the build name in the err/success output
This commit is contained in:
parent
2f98ab2018
commit
a000934154
|
@ -187,10 +187,10 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
||||||
runArtifacts, err := b.Run(ui, env.Cache())
|
runArtifacts, err := b.Run(ui, env.Cache())
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ui.Error(fmt.Sprintf("Build errored: %s", err))
|
ui.Error(fmt.Sprintf("Build '%s' errored: %s", name, err))
|
||||||
errors[name] = err
|
errors[name] = err
|
||||||
} else {
|
} else {
|
||||||
ui.Say("Build finished.")
|
ui.Say(fmt.Sprintf("Build '%s' finished.", name))
|
||||||
artifacts[name] = runArtifacts
|
artifacts[name] = runArtifacts
|
||||||
}
|
}
|
||||||
}(b)
|
}(b)
|
||||||
|
|
Loading…
Reference in New Issue