summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f54733b3..dde4e954 100644
--- a/data/rbot/plugins/math.rb
+++ b/data/rbot/plugins/math.rb
@@ -112,7 +112,7 @@ class MathPlugin < Plugin
end
m.reply answer
rescue Exception => e
- error "couldn't evaluate expression \"#{m.params}\": #{e.inspect}"
+ error e
m.reply "illegal expression \"#{m.params}\""
return
end