builder/v*: Include path to output dir in error

pull/204/head
Emil Sit 13 years ago
parent 7d1f799ced
commit 20d3946eae

@ -242,7 +242,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if _, err := os.Stat(b.config.OutputDir); err == nil {
errs = packer.MultiErrorAppend(
errs,
errors.New("Output directory already exists. It must not exist."))
fmt.Errorf("Output directory '%s' already exists. It must not exist.", b.config.OutputDir))
}
}

@ -195,7 +195,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
if _, err := os.Stat(b.config.OutputDir); err == nil {
errs = packer.MultiErrorAppend(
errs,
errors.New("Output directory already exists. It must not exist."))
fmt.Errorf("Output directory '%s' already exists. It must not exist.", b.config.OutputDir))
}
}

Loading…
Cancel
Save