ObjFW  Diff

Differences From Artifact [8c21bf2dad]:

To Artifact [77758e69da]:


32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
32
33
34
35
36
37
38

39
40
41
42
43
44
45
46







-
+







#import "OFStdIOStream.h"
#import "OFSystemInfo.h"
#import "OFTCPSocket.h"
#import "OFTLSSocket.h"
#import "OFURL.h"

#import "OFConnectionFailedException.h"
#import "OFDNSRequestFailedException.h"
#import "OFDNSQueryFailedException.h"
#import "OFHTTPRequestFailedException.h"
#import "OFInvalidFormatException.h"
#import "OFInvalidServerReplyException.h"
#import "OFOpenItemFailedException.h"
#import "OFOutOfRangeException.h"
#import "OFReadFailedException.h"
#import "OFRetrieveItemAttributesFailedException.h"
608
609
610
611
612
613
614
615

616
617
618
619
620

621
622

623
624
625
626
627
628
629
608
609
610
611
612
613
614

615
616
617
618
619

620
621

622
623
624
625
626
627
628
629







-
+




-
+

-
+







	return true;
}

-	  (void)client: (OFHTTPClient *)client
  didFailWithException: (id)e
	       request: (OFHTTPRequest *)request
{
	if ([e isKindOfClass: [OFDNSRequestFailedException class]]) {
	if ([e isKindOfClass: [OFDNSQueryFailedException class]]) {
		if (!_quiet)
			[of_stdout writeString: @"\n"];

		[of_stderr writeLine:
		    OF_LOCALIZED(@"download_dns_request_failed",
		    OF_LOCALIZED(@"download_dns_query_failed",
		    @"%[prog]: Failed to download <%[url]>!\n"
		    @"  DNS request failed: %[exception]",
		    @"  DNS query failed: %[exception]",
		    @"prog", [OFApplication programName],
		    @"url", request.URL.string,
		    @"exception", e)];
	} else if ([e isKindOfClass: [OFConnectionFailedException class]]) {
		if (!_quiet)
			[of_stdout writeString: @"\n"];