summaryrefslogtreecommitdiff
path: root/lib/rbot/config.rb
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-11-21 01:27:38 +0300
committerdmitry kim <jason@nichego.net>2008-11-21 01:35:31 +0300
commit11092542ded9d33f2f5abd3f5c8789ff73bb37b4 (patch)
tree50e7fc6a1aedc03b9eefd82fdfc25f6e2e742d63 /lib/rbot/config.rb
parentac9eb1b02d4200006566ccd630dd678345008963 (diff)
* fix config validation diagnostics for ArrayValue
Diffstat (limited to 'lib/rbot/config.rb')
-rw-r--r--lib/rbot/config.rb2
1 files changed, 1 insertions, 1 deletions
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