Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Be more selective about catching Gemfile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 23, 2011
1 parent 09bf5f5 commit 091f780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/dsl.rb
Expand Up @@ -6,7 +6,7 @@ def self.evaluate(gemfile, lockfile, unlock)
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," \
Expand Down

0 comments on commit 091f780

Please sign in to comment.