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

Robustify the plugin require

I was getting trouble with both pry-editline and pry-syntax-hacks, while
running with a newly-compiled-Ruby with GNU Readline on a Mac (the
default Readline was working OK with these. There could be more
investigation about the error, but for now, at least pry boots with a
handy error instead of a total failure).
This commit is contained in:
☈king 2013-02-07 20:58:31 -06:00 committed by rkingpa@sharpsaw.org
parent 8f4b11d70d
commit 0f207450a9

View file

@ -50,6 +50,8 @@ class Pry
rescue LoadError => e
warn "Found plugin #{gem_name}, but could not require '#{gem_name}'"
warn e
rescue => e
warn "require '#{gem_name}' # Failed, saying: #{e}"
end
self.active = true