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:
parent
6a799a7fcd
commit
b2bce306ad
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue