summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-06-08 22:33:38 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-06-08 22:33:38 +0000
commit6f7bac545f3a39d0f73b77a84d104647d20c4b6d (patch)
tree529da5faef50045514beb4a6cc0a885d92370310
parent8483e916ca3f1bc5450dc8c6966786b6958c2465 (diff)
Output {{{gets}}} exceptions on debug
-rw-r--r--lib/rbot/ircsocket.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb
index df1f4e8a..7b4175de 100644
--- a/lib/rbot/ircsocket.rb
+++ b/lib/rbot/ircsocket.rb
@@ -106,7 +106,8 @@ module Irc
reply.strip! if reply
debug "RECV: #{reply.inspect}"
return reply
- rescue
+ rescue => e
+ debug "socket get failed: #{e}"
return nil
end
end