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

pull/919/head
Mitchell Hashimoto 13 years ago
parent c6c04ef911
commit bb5b12d77e

@ -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())

Loading…
Cancel
Save