diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-04-01 06:22:57 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-04-01 06:22:57 +0000 |
commit | 237cc945bb82c3428b85646fe1688fe61d4cc535 (patch) | |
tree | 1cd12e9f00928504fbd8e7c777ab141648f64c39 /railties/environments | |
parent | b7a051182cd077c9292d41f13b63c6018ae69963 (diff) | |
download | rails-237cc945bb82c3428b85646fe1688fe61d4cc535.tar.gz rails-237cc945bb82c3428b85646fe1688fe61d4cc535.tar.bz2 rails-237cc945bb82c3428b85646fe1688fe61d4cc535.zip |
Exit when no gem is found; expand on error message
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/boot.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/environments/boot.rb b/railties/environments/boot.rb index ad0dcd6583..ff4266ac8a 100644 --- a/railties/environments/boot.rb +++ b/railties/environments/boot.rb @@ -24,7 +24,11 @@ else if rails_gem require rails_gem.full_gem_path + '/lib/initializer' else - STDERR.puts "Cannot find gem for Rails =#{RAILS_GEM_VERSION}. Install missing gem or change config/boot.rb." + STDERR.puts %(Cannot find gem for Rails =#{RAILS_GEM_VERSION}: + Install the missing gem with 'gem install -v=#{RAILS_GEM_VERSION} rails', or + change environment.rb to define RAILS_GEM_VERSION with your desired version. +) + exit 1 end else require 'initializer' |