Permalink
Browse files

We don't need the error object when a LoadError occurs

  • Loading branch information...
1 parent e09bbf9 commit 4ed7465ab5df51d5e127a6ad9ffa2cf936bb924d @jeroenj jeroenj committed Oct 26, 2012
View
2 recipes/airbrake/airbrake.rb
@@ -6,6 +6,6 @@
begin
require 'airbrake/capistrano'
-rescue LoadError => e
+rescue LoadError
raise "\nairbrake gem not found. Please install it with '(sudo) gem install airbrake' or add it to your Gemfile if you are using bundler."
end
View
2 recipes/bundler/bundler.rb
@@ -6,6 +6,6 @@
begin
require 'bundler/capistrano'
-rescue LoadError => e
+rescue LoadError
raise "\nbundler gem not found. Please install it with '(sudo) gem install bundler'."
end
View
2 recipes/campfire/campfire.rb
@@ -2,7 +2,7 @@
###### Begin sets
begin
require 'capistrano/campfire'
-rescue LoadError => e
+rescue LoadError
raise "\ncapistrano-campfire gem not found. Please install it with '(sudo) gem install capistrano-campfire' or add it to your Gemfile if you are using bundler."
end
View
2 recipes/railsless_deploy/railsless_deploy.rb
@@ -6,6 +6,6 @@
begin
require 'railsless-deploy'
-rescue LoadError => e
+rescue LoadError
raise "\nrailsless-deploy gem not found. Either install it with '(sudo) gem install railsless-deploy' or add it to your Gemfile if you are using bundler."
end
View
2 recipes/ruby_whenever/ruby_whenever.rb
@@ -8,6 +8,6 @@
begin
require 'whenever/capistrano'
-rescue LoadError => e
+rescue LoadError
raise "\nwhenever gem not found. Either install it with '(sudo) gem install whenever' or add it to your Gemfile if you are using bundler."
end
View
2 recipes/rvm/rvm.rb
@@ -8,6 +8,6 @@
begin
require 'rvm/capistrano'
-rescue LoadError => e
+rescue LoadError
raise "\nrvm-capistrano gem not found. Either install it with '(sudo) gem install rvm-capistrano' or add it to your Gemfile if you are using bundler."
end

0 comments on commit 4ed7465

Please sign in to comment.