lib/bundler/definition.rb in bundler-1.2.3 vs lib/bundler/definition.rb in bundler-1.2.4
- old
+ new
@@ -228,10 +228,10 @@
# TODO: Warn here if we got here.
return
end
File.open(file, 'wb'){|f| f.puts(contents) }
- rescue Errno::EACCES => e
+ rescue Errno::EACCES
raise Bundler::InstallError,
"There was an error while trying to write to Gemfile.lock. It is likely that \n" \
"you need to allow write permissions for the file at path: \n" \
"#{File.expand_path(file)}"
end