summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-09-06 10:46:05 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-09-06 20:23:36 +0200
commit93cc91e6eaa4dbdaae59788a1cd37a8b46f6a435 (patch)
tree7056d729b7713b56dec8df38651efc81ab8c013f /lib
parentf62549e3a158935bfa5d49e74f6c9ee6d9f6d5ea (diff)
ruby 1.9: Exception#to_str
Since in ruby 1.9 Exception#to_str was removed, change it to to #to_s
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/plugins.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index 2b4694ad..81449cce 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -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)