Merge pull request #204 from sit/builder-output-directory-error
builder/v*: Include path to output dir in error
This commit is contained in:
commit
e51e9cd56e
|
@ -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…
Reference in New Issue