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

This commit is contained in:
Mitchell Hashimoto 2013-06-19 13:07:52 -07:00
parent c6c04ef911
commit bb5b12d77e
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 {
fmt.Fprintf(&message, artifact.String())
} else {
fmt.Print("<nothing>")
fmt.Fprint(&message, "<nothing>")
}
env.Ui().Say(message.String())