lib/berkshelf/vagrant/action/clean.rb in berkshelf-1.0.4 vs lib/berkshelf/vagrant/action/clean.rb in berkshelf-1.1.0.rc1
- old
+ new
@@ -15,9 +15,11 @@
Berkshelf.formatter.msg "cleaning Vagrant's shelf"
FileUtils.remove_dir(self.shelf, fore: true)
end
@app.call(env)
+ rescue BerkshelfError => e
+ raise VagrantWrapperError.new(e)
end
end
end
end
end