aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 9a5f7df5..7bf03cfd 100644
--- a/lib/bundler/dsl.rb
+++ b/lib/bundler/dsl.rb
@@ -6,7 +6,7 @@ module Bundler
builder = new
builder.instance_eval(Bundler.read_file(gemfile.to_s), gemfile.to_s, 1)
builder.to_definition(lockfile, unlock)
- rescue StandardError, ScriptError => e
+ rescue ScriptError, RegexpError, NameError, ArgumentError => e
e.backtrace[0] = "#{e.backtrace[0]}: #{e.message} (#{e.class})"
Bundler.ui.info e.backtrace.join("\n ")
raise GemfileError, "There was an error in your Gemfile," \