From 48e144a20829faaeca9a7db8fbc6128f1f5d7297 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 4 Oct 2005 04:04:07 +0000 Subject: 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 --- lib/coderay/helpers/plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/coderay/helpers/plugin.rb') 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 -- cgit v1.2.1