summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 23:31:26 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-09 23:31:26 +0200
commitd6f297d8f6bff4f33917441355a3e2ff4a0550fe (patch)
tree79979d49a0052d91f106808cceaa2c6d2d1e50ae
parent29397fb64d302d9dac81521c24e934e588d61ee8 (diff)
math plugin: report errors with full backtrace
-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