From 39a241cec6a1761c7d4dccc5c155a2a83f7b6143 Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 29 Jun 2008 09:05:21 +0000 Subject: [PATCH] follow up the previous commit. * lib/rss/parser.rb: merge documents from ruby_1_8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/parser.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 8e91fb6ef6..9b28f0fa8a 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -34,7 +34,8 @@ module RSS class NotValidXMLParser < Error def initialize(parser) super("#{parser} is not an available XML parser. " << - "Available XML parser is " << + "Available XML parser" << + (AVAILABLE_PARSERS.size > 1 ? "s are " : " is ") << "#{AVAILABLE_PARSERS.inspect}.") end end