summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-06-15 21:07:35 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-26 23:31:37 +0200
commit4cd19a0f2630758d4f595fc072f012baafffac92 (patch)
tree7fdfcd9e83986b72695c6764cce977ae7f92876d
parent2a8303d7e728ffbeaf5d566a391812a03424189d (diff)
ruby 1.9: convert Exception to string explicitly
changed "string + exception" to "string #{e}", the former yields 'can't convert <e> into String' in ruby 1.9
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
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