summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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