diff options
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index aacde99..2518e5a 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -92,8 +92,8 @@ module PluginHost begin
$stderr.puts 'Loading plugin: ' + path if $DEBUG
require path
- rescue LoadError
- raise PluginNotFound, "Plugin #{id.inspect} not found."
+ rescue LoadError => boom
+ raise PluginNotFound, 'Could not load plugin %p: %s' % [id, boom]
else
# Plugin should have registered by now
unless h.has_key? id
|