Author: geechorama
Date: Tue Oct 27 20:27:49 2009
New Revision: 830329

URL: http://svn.apache.org/viewvc?rev=830329&view=rev
Log:
THRIFT-614. Add some more info to the exception that gets thrown when 
THTTPClient encounters an unexpected NSURLResponse object.

Modified:
    incubator/thrift/trunk/lib/cocoa/src/transport/THTTPClient.m

Modified: incubator/thrift/trunk/lib/cocoa/src/transport/THTTPClient.m
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cocoa/src/transport/THTTPClient.m?rev=830329&r1=830328&r2=830329&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cocoa/src/transport/THTTPClient.m (original)
+++ incubator/thrift/trunk/lib/cocoa/src/transport/THTTPClient.m Tue Oct 27 
20:27:49 2009
@@ -139,7 +139,8 @@
   }
   if (![response isKindOfClass: [NSHTTPURLResponse class]]) {
     @throw [TTransportException exceptionWithName: @"TTransportException"
-                                           reason: @"Unexpected NSURLResponse 
type"];
+                                           reason: [NSString stringWithFormat: 
@"Unexpected NSURLResponse type: %@",
+                                                    [response className]]];
   }
 
   NSHTTPURLResponse * httpResponse = (NSHTTPURLResponse *) response;


Reply via email to