From: Giuseppe Bilotta Date: Wed, 9 Apr 2008 21:31:26 +0000 (+0200) Subject: math plugin: report errors with full backtrace X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d6f297d8f6bff4f33917441355a3e2ff4a0550fe;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git math plugin: report errors with full backtrace --- 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