summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers/plugin.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-10-04 04:04:07 +0000
committermurphy <murphy@rubychan.de>2005-10-04 04:04:07 +0000
commit48e144a20829faaeca9a7db8fbc6128f1f5d7297 (patch)
tree24326041ae8a5cc12a87ab96b8cdc67dba1e585e /lib/coderay/helpers/plugin.rb
parent0ae9f844faf25d3be9f6fe5f8157f6bfebb30942 (diff)
downloadcoderay-48e144a20829faaeca9a7db8fbc6128f1f5d7297.tar.gz
Two new encoders: debug and xml.
encoder.rb: new token handling encoders/statistic.rb: using new handling ruby_helper.rb: small improvements ruby.rb: - escapes in subtoken - Float detection changed - some multi-char operators are now scanned as one token - def and module definition handling changed bin/coderay: improved, new interface (still in progress) plugin.rb: more expressive load error message
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r--lib/coderay/helpers/plugin.rb4
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