summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/math.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/math.rb')
-rw-r--r--data/rbot/plugins/math.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/math.rb b/data/rbot/plugins/math.rb
index 09e3ed3f..afa4737c 100644
--- a/data/rbot/plugins/math.rb
+++ b/data/rbot/plugins/math.rb
@@ -111,7 +111,7 @@ class MathPlugin < Plugin
end
m.reply answer
rescue Exception => e
- puts "couldn't evaluate expression \"#{m.params}\": #{e}"
+ error "couldn't evaluate expression \"#{m.params}\": #{e.inspect}"
m.reply "illegal expression \"#{m.params}\""
return
end