aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-12-22 20:18:44 -0800
committerAndre Arko <andre@arko.net>2011-12-22 20:23:35 -0800
commit091f78088d50bbfffe1e8cb677b0c02c58a9fe2f (patch)
treeb7966cf7eb1afb617d81f0cb9768bc2f64c70181 /lib/bundler/dsl.rb
parent09bf5f5cbda436006bec012aa9dd0da58da5effc (diff)
downloadbundler-091f78088d50bbfffe1e8cb677b0c02c58a9fe2f.tar.gz
Be more selective about catching Gemfile errors
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 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," \