From 0f207450a968e9e72b6e8cc8b2c21e7029569d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=88king?= Date: Thu, 7 Feb 2013 20:58:31 -0600 Subject: [PATCH] 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). --- lib/pry/plugins.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pry/plugins.rb b/lib/pry/plugins.rb index 1a7041b5..e9bce09a 100644 --- a/lib/pry/plugins.rb +++ b/lib/pry/plugins.rb @@ -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