lib/berkshelf/vagrant/action/upload.rb in berkshelf-1.0.4 vs lib/berkshelf/vagrant/action/upload.rb in berkshelf-1.1.0.rc1
- old
+ new
@@ -14,9 +14,11 @@
if Berkshelf::Vagrant.chef_client?(env[:vm].config)
upload(env)
end
@app.call(env)
+ rescue BerkshelfError => e
+ raise VagrantWrapperError.new(e)
end
private
def upload(env)