Skip to content

Commit 10a23d1

Browse files
committed
- Removed line that was failing, just checking if it works without it
1 parent 9d82b83 commit 10a23d1

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

https.ios.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

https.ios.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,20 @@ function AFSuccess(resolve, task: NSURLSessionDataTask, data: NSDictionary<strin
8989

9090
function AFFailure(resolve, reject, task: NSURLSessionDataTask, error: NSError) {
9191
console.error('AFFailure');
92-
// console.log('error.description', error.description)
93-
// console.log('error.userInfo.description', error.userInfo.description)
94-
// console.log('error.localizedDescription', error.localizedDescription)
92+
console.log('error.description', error.description)
93+
console.log('error.userInfo.description', error.userInfo.description)
94+
console.log('error.localizedDescription', error.localizedDescription)
9595
let data: NSData = error.userInfo.valueForKey(AFNetworkingOperationFailingURLResponseDataErrorKey);
9696
let body = NSString.alloc().initWithDataEncoding(data, NSUTF8StringEncoding).toString();
9797
try {
9898
body = JSON.parse(body);
9999
} catch (e) {
100100
}
101+
101102
let content: any = {
102103
body,
103104
description: error.description,
104-
reason: error.localizedDescription,
105-
url: error.userInfo.objectForKey('NSErrorFailingURLKey').description
105+
reason: error.localizedDescription
106106
};
107107
// console.log('content.url', content.url)
108108
// try {

0 commit comments

Comments
 (0)