From d6f297d8f6bff4f33917441355a3e2ff4a0550fe Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 9 Apr 2008 23:31:26 +0200 Subject: math plugin: report errors with full backtrace --- data/rbot/plugins/math.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 -- cgit v1.2.3