builder/v*: Include path to output dir in error
This commit is contained in:
parent
16d102d055
commit
329266e86e
|
@ -242,7 +242,7 @@ func (b *Builder) Prepare(raws ...interface{}) error {
|
||||||
if _, err := os.Stat(b.config.OutputDir); err == nil {
|
if _, err := os.Stat(b.config.OutputDir); err == nil {
|
||||||
errs = packer.MultiErrorAppend(
|
errs = packer.MultiErrorAppend(
|
||||||
errs,
|
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 {
|
if _, err := os.Stat(b.config.OutputDir); err == nil {
|
||||||
errs = packer.MultiErrorAppend(
|
errs = packer.MultiErrorAppend(
|
||||||
errs,
|
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…
Reference in New Issue