From 11092542ded9d33f2f5abd3f5c8789ff73bb37b4 Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Fri, 21 Nov 2008 01:27:38 +0300 Subject: * fix config validation diagnostics for ArrayValue --- lib/rbot/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index 207264bf..4f81c695 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -186,7 +186,7 @@ module Config unless newval.include? val newval << val validate_item(val) or raise ArgumentError, "invalid item: #{val}" - validate(newval) or raise ArgumentError, "invalid value: #{newval.to_s}" + validate(newval) or raise ArgumentError, "invalid value: #{newval.inspect}" set(newval) end end -- cgit v1.2.3