command/build: output <nothing> properly if no artifact

This commit is contained in:
Mitchell Hashimoto 2013-06-19 13:07:52 -07:00
parent 7dbe330099
commit 214d679e2d
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (c Command) Run(env packer.Environment, args []string) int {
if artifact != nil { if artifact != nil {
fmt.Fprintf(&message, artifact.String()) fmt.Fprintf(&message, artifact.String())
} else { } else {
fmt.Print("<nothing>") fmt.Fprint(&message, "<nothing>")
} }
env.Ui().Say(message.String()) env.Ui().Say(message.String())