diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-09 23:31:26 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-09 23:31:26 +0200 |
commit | d6f297d8f6bff4f33917441355a3e2ff4a0550fe (patch) | |
tree | 79979d49a0052d91f106808cceaa2c6d2d1e50ae /data | |
parent | 29397fb64d302d9dac81521c24e934e588d61ee8 (diff) |
math plugin: report errors with full backtrace
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/math.rb | 2 |
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 |