diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index 54cd54e..348f7be 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -202,8 +202,8 @@ def get_xhdr(server, range, header) else print "Won't handdle this... yet :(\n" end - rescue Errno::EPIPE, Errno::ECONNRESET - print "Caught Errno::EPIPE reading from server #{server} (get_xhdr)\n" + rescue Errno::EPIPE, Errno::ECONNRESET, EOFError + print "Caught #{$!.message} reading from server #{server} (get_xhdr)\n" print "Error: #{$!}\n" reconnect(server) get_group_info(server)