]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/ircbot.rb
ircbot: fix nil error variable on ServerError
[user/henk/code/ruby/rbot.git] / lib / rbot / ircbot.rb
index abf64618a80107c8792c49f802cb70a03e607814..b6843b461845690629449ce53c6e9eebe5443119 100644 (file)
@@ -972,7 +972,7 @@ class Bot
       rescue Errno::ETIMEDOUT, Errno::ECONNABORTED, TimeoutError, SocketError => e
         error "network exception: #{e.pretty_inspect}"
         quit_msg = e.to_s
-      rescue ServerError
+      rescue ServerError => e
         # received an ERROR from the server
         quit_msg = "server ERROR: " + e.message
         too_fast = e.message.index("reconnect too fast")