1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added exact error message to plugin warning when gem is found but not loaded

This commit is contained in:
John Mair 2011-12-11 04:11:31 +13:00
parent 6a799a7fcd
commit b2bce306ad

View file

@ -44,8 +44,9 @@ class Pry
def activate!
begin
require gem_name if !active?
rescue LoadError
rescue LoadError => e
$stderr.puts "Warning: The plugin '#{gem_name}' was not found! (gem found but could not be loaded)"
$stderr.puts e
end
self.active = true
self.enabled = true