From 6f7bac545f3a39d0f73b77a84d104647d20c4b6d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 8 Jun 2006 22:33:38 +0000 Subject: Output {{{gets}}} exceptions on debug --- lib/rbot/ircsocket.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3