From 20d3946eae007ff9f164af233dbb4ac75b2896bc Mon Sep 17 00:00:00 2001 From: Emil Sit Date: Sat, 20 Jul 2013 00:36:59 -0400 Subject: [PATCH] builder/v*: Include path to output dir in error --- builder/virtualbox/builder.go | 2 +- builder/vmware/builder.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index 5754a8b8f..af6ffd35a 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -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)) } } diff --git a/builder/vmware/builder.go b/builder/vmware/builder.go index e43e2cd62..d2e2ba3ed 100644 --- a/builder/vmware/builder.go +++ b/builder/vmware/builder.go @@ -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)) } }