more consistant error message

This commit is contained in:
Ward Wouts 2002-11-05 09:19:41 +00:00
parent 137c459d50
commit c9d5ebb447

View file

@ -157,7 +157,7 @@ def get_group_info(server)
begin begin
resp, count, first, last, name = @connections[server]["nntp"].group(@group) resp, count, first, last, name = @connections[server]["nntp"].group(@group)
rescue Net::NNTP::RuntimeError rescue Net::NNTP::RuntimeError
print "Got error \"#{$!}\" from #{server}\n" print "Caught #{$!.type} from #{server}\n"
raise PermError, "#{$!}" raise PermError, "#{$!}"
rescue Errno::EPIPE, Errno::ECONNRESET rescue Errno::EPIPE, Errno::ECONNRESET
print "Caught #{$!.type} reading from server #{server} (get_group_info)\n" print "Caught #{$!.type} reading from server #{server} (get_group_info)\n"