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
1 changed files with 2 additions and 1 deletions

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