From: franz Date: Mon, 15 Jun 2009 19:07:35 +0000 (+0200) Subject: ruby 1.9: convert Exception to string explicitly X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=4cd19a0f2630758d4f595fc072f012baafffac92;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git ruby 1.9: convert Exception to string explicitly changed "string + exception" to "string #{e}", the former yields 'can't convert into String' in ruby 1.9 --- diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index f04cb480..9317fd4d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -914,7 +914,7 @@ class Bot @socket.connect @last_rec = Time.now rescue => e - raise e.class, "failed to connect to IRC server at #{@socket.server_uri}: " + e + raise e.class, "failed to connect to IRC server at #{@socket.server_uri}: #{e}" end quit if $interrupted > 0