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

This commit is contained in:
Emil Sit 2013-07-20 00:36:59 -04:00
parent 16d102d055
commit 329266e86e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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