Skip to content

Commit

Permalink
post-processor/vagrant: check for error when tarring earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 2, 2013
1 parent dbbbc38 commit 8ece9a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions post-processor/vagrant/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func DirToBox(dst, dir string) error {

// This is the walk func that tars each of the files in the dir
tarWalk := func(path string, info os.FileInfo, prevErr error) error {
// If there was a prior error, return it
if prevErr != nil {
return prevErr
}

// Skip directories
if info.IsDir() {
log.Printf("Skiping directory '%s' for box '%s'", path, dst)
Expand Down

0 comments on commit 8ece9a6

Please sign in to comment.