Commit 4912b485 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: Say if no artifacts were created

parent 154c1716
...@@ -250,6 +250,8 @@ func (c Command) Run(env packer.Environment, args []string) int { ...@@ -250,6 +250,8 @@ func (c Command) Run(env packer.Environment, args []string) int {
env.Ui().Say(message.String()) env.Ui().Say(message.String())
} }
} }
} else {
env.Ui().Say("\n==> Builds finished but no artifacts were created.")
} }
return 0 return 0
......
...@@ -155,7 +155,7 @@ func (b *coreBuild) Run(ui Ui, cache Cache) ([]Artifact, error) { ...@@ -155,7 +155,7 @@ func (b *coreBuild) Run(ui Ui, cache Cache) ([]Artifact, error) {
builderArtifact, err := b.builder.Run(ui, hook, cache) builderArtifact, err := b.builder.Run(ui, hook, cache)
if err != nil { if err != nil {
return artifacts, err return nil, err
} }
errors := make([]error, 0) errors := make([]error, 0)
......
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