X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fmath.rb;h=afa4737cd9eff71bf10292245ea04e67c8a8b132;hb=24bb60775741d3731400f1e430ef6bf3a2e1b933;hp=09e3ed3f36a53fe32d93d2e88bd3492a36aa5afc;hpb=3196b989866d1f136e9eb16d688bb0680bbfca9b;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/math.rb b/data/rbot/plugins/math.rb index 09e3ed3f..afa4737c 100644 --- a/data/rbot/plugins/math.rb +++ b/data/rbot/plugins/math.rb @@ -111,7 +111,7 @@ class MathPlugin < Plugin end m.reply answer rescue Exception => e - puts "couldn't evaluate expression \"#{m.params}\": #{e}" + error "couldn't evaluate expression \"#{m.params}\": #{e.inspect}" m.reply "illegal expression \"#{m.params}\"" return end