mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-614. Add some more info to the exception that gets thrown when THTTPClient encounters an unexpected NSURLResponse object.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@830329 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72751724b5
commit
73380097e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user