Skip to content

Commit

Permalink
[Truffle] Warn, rather than outright fail, if RubyGems can't be loade…
Browse files Browse the repository at this point in the history
…d during bootstrap.
  • Loading branch information
nirvdrum committed Oct 26, 2016
1 parent 0c2ec06 commit d8141bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions truffle/src/main/ruby/post-boot/gems.rb
Expand Up @@ -11,5 +11,8 @@
rescue LoadError
end


require 'rubygems'
begin
require 'rubygems'
rescue LoadError
warn('Could not load RubyGems during runtime bootstrap. Please set JRUBY_HOME to an appropriate location.')
end

0 comments on commit d8141bb

Please sign in to comment.