lib/plugins/pluginmanager.rb in rsence-pre-2.2.0.25 vs lib/plugins/pluginmanager.rb in rsence-pre-2.2.0.26
- old
+ new
@@ -169,10 +169,14 @@
@@prev_errors.shift if @@prev_errors.length > 10
if eval_repl
puts
puts "plugin: #{eval_repl}"
puts
- err_msg = err_msg.gsub(/^\t\(eval\)\:/s,"\t#{eval_repl}:")
+ begin
+ err_msg = err_msg.gsub(/^\t\(eval\)\:/s,"\t#{eval_repl}:")
+ rescue Encoding::CompatibilityError => e
+ $stderr.write( "Encoding::CompatibilityError in plugin error eval!" )
+ end
end
$stderr.write( err_msg )
end
# Search servlets that match the +uri+ and +req_type+