]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
math plugin: report errors with full backtrace
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 9 Apr 2008 21:31:26 +0000 (23:31 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 9 Apr 2008 21:31:26 +0000 (23:31 +0200)
data/rbot/plugins/math.rb

index f54733b33c0435e3e6a0d2ebd32a5e70f422b407..dde4e954688d384fff712342bf4b1627c7a39042 100644 (file)
@@ -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