summaryrefslogtreecommitdiff
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 12:25:01 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-04 19:25:37 +0100
commit5c456b21162daa4cd7d4bef1b001a6899acaaeae (patch)
treeaa8d86525bbe8a45f2d53ffab683b3a9a1c9d1cd /lib/bundler/dsl.rb
parenta4c2a86fd9450e6824ed79a852ab1ab7ee45320e (diff)
downloadbundler-5c456b21162daa4cd7d4bef1b001a6899acaaeae.tar.gz
Move `rescue Exception` exceptions inline
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb
index 69dcc6427f..c736fc9730 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -45,7 +45,7 @@ module Bundler
@gemfiles << expanded_gemfile_path
contents ||= Bundler.read_file(@gemfile.to_s)
instance_eval(contents.dup.untaint, gemfile.to_s, 1)
- rescue Exception => e
+ rescue Exception => e # rubocop:disable Lint/RescueException
message = "There was an error " \
"#{e.is_a?(GemfileEvalError) ? "evaluating" : "parsing"} " \
"`#{File.basename gemfile.to_s}`: #{e.message}"