Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
91c1bf0b
Commit
91c1bf0b
authored
Jul 20, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #204 from sit/builder-output-directory-error
builder/v*: Include path to output dir in error
parents
358a5173
329266e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
builder/virtualbox/builder.go
builder/virtualbox/builder.go
+1
-1
builder/vmware/builder.go
builder/vmware/builder.go
+1
-1
No files found.
builder/virtualbox/builder.go
View file @
91c1bf0b
...
...
@@ -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
))
}
}
...
...
builder/vmware/builder.go
View file @
91c1bf0b
...
...
@@ -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
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment