better error message?

This commit is contained in:
Ward Wouts 2002-10-29 21:00:37 +00:00
parent 281cf81570
commit aca04979f4

View file

@ -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)