File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ - (void)handleError:(NSMutableDictionary*)dictionary withResponse:(NSHTTPURLResp
69
69
[dictionary setValue: response.URL.absoluteString forKey: @" url" ];
70
70
[dictionary setObject: [NSNumber numberWithInt: (int )response.statusCode] forKey: @" status" ];
71
71
[dictionary setObject: [self copyHeaderFields: response.allHeaderFields] forKey: @" headers" ];
72
- [dictionary setObject: error.userInfo[AFNetworkingOperationFailingURLResponseBodyKey] forKey: @" error" ];
72
+ if (error.userInfo [AFNetworkingOperationFailingURLResponseBodyKey]) {
73
+ [dictionary setObject: error.userInfo[AFNetworkingOperationFailingURLResponseBodyKey] forKey: @" error" ];
74
+ }
73
75
} else {
74
76
[dictionary setObject: [self getStatusCode: error] forKey: @" status" ];
75
77
[dictionary setObject: [error localizedDescription ] forKey: @" error" ];
You can’t perform that action at this time.
0 commit comments