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:
parent
8f4b11d70d
commit
0f207450a9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue