Merge pull request #204 from sit/builder-output-directory-error

builder/v*: Include path to output dir in error
This commit is contained in:
Mitchell Hashimoto 2013-07-20 16:58:39 -07:00
commit e51e9cd56e
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))
}
}