summaryrefslogtreecommitdiff
path: root/lib/bundler/ruby_dsl.rb
diff options
context:
space:
mode:
authorAgis- <corestudiosinc@gmail.com>2015-09-01 23:11:35 +0300
committerAgis- <corestudiosinc@gmail.com>2015-09-02 00:30:59 +0300
commitd1e9e01109bdab9d027a14152f65655b2f66af00 (patch)
tree5cb021b83ad0857c45c68f7ad364d9448931907d /lib/bundler/ruby_dsl.rb
parent21059b4ec2af38bf7ef9ddc233ca393259c97a9b (diff)
downloadbundler-d1e9e01109bdab9d027a14152f65655b2f66af00.tar.gz
Distinguish Gemfile syntax and evaluation errors
Fixes #3783.
Diffstat (limited to 'lib/bundler/ruby_dsl.rb')
-rw-r--r--lib/bundler/ruby_dsl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/ruby_dsl.rb b/lib/bundler/ruby_dsl.rb
index b29fc019a7..46587e98cf 100644
--- a/lib/bundler/ruby_dsl.rb
+++ b/lib/bundler/ruby_dsl.rb
@@ -4,7 +4,7 @@ module Bundler
raise GemfileError, "Please define :engine_version" if options[:engine] && options[:engine_version].nil?
raise GemfileError, "Please define :engine" if options[:engine_version] && options[:engine].nil?
- raise GemfileError, "ruby_version must match the :engine_version for MRI" if options[:engine] == "ruby" && options[:engine_version] && ruby_version != options[:engine_version]
+ raise GemfileEvalError, "ruby_version must match the :engine_version for MRI" if options[:engine] == "ruby" && options[:engine_version] && ruby_version != options[:engine_version]
@ruby_version = RubyVersion.new(ruby_version, options[:patchlevel], options[:engine], options[:engine_version])
end
end