mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 14:00:00 +00:00
Add NSError information to the HttpResponse on failure
This commit is contained in:
1 parent
f8cc7bb77f
commit
565a8e56e6
1 file changed
+4
@@ -129,6 +129,10 @@ static const NSString* HTTPS_PORT = @"47984";
|
|||||||
[self executeRequestSynchronously:request];
|
[self executeRequestSynchronously:request];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (_error && request.response) {
|
||||||
|
request.response.statusCode = [_error code];
|
||||||
|
request.response.statusMessage = [_error localizedDescription];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSURLRequest*) createRequestFromString:(NSString*) urlString timeout:(int)timeout {
|
- (NSURLRequest*) createRequestFromString:(NSString*) urlString timeout:(int)timeout {
|
||||||
|
|||||||
Reference in new issue
Block a user