]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
ruby 1.9: Exception#to_str
authorfranz <Franz.Netykafka@runbox.com>
Sun, 6 Sep 2009 08:46:05 +0000 (10:46 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 6 Sep 2009 18:23:36 +0000 (20:23 +0200)
Since in ruby 1.9 Exception#to_str was removed, change it to to #to_s

lib/rbot/plugins.rb

index 2b4694ad2b9fd5ce589df659384385168038eca8..81449cceb13f614da1fe96083a00a2eadf9a8ef3 100644 (file)
@@ -582,7 +582,7 @@ module Plugins
             "#{fname}#{$1}#{$3}"
           }
         }
-        msg = err.to_str.gsub(/^\(eval\)(:\d+)(:in `.*')?(:.*)?/) { |m|
+        msg = err.to_s.gsub(/^\(eval\)(:\d+)(:in `.*')?(:.*)?/) { |m|
           "#{fname}#{$1}#{$3}"
         }
         newerr = err.class.new(msg)