From 4cd19a0f2630758d4f595fc072f012baafffac92 Mon Sep 17 00:00:00 2001 From: franz Date: Mon, 15 Jun 2009 21:07:35 +0200 Subject: 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 --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3