Skip to content

Commit 19cf5f1

Browse files
committed
change cf error info
1 parent d39ac18 commit 19cf5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QiniuSDK/Http/Request/HttpClient/UrlProtocol/QNCFHttpClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ - (NSError *)translateCFNetworkErrorIntoUrlError:(NSError *)cfError{
366366
}
367367

368368
NSInteger errorCode = kQNNetworkError;
369-
NSString *errorInfo = [NSString stringWithFormat:@"cf client:[%ld] %@", (long)errorCode, cfError.localizedDescription];
369+
NSString *errorInfo = [NSString stringWithFormat:@"cf client:[%ld] %@", (long)cfError.code, cfError.localizedDescription];
370370
switch (cfError.code) {
371371
case ENOENT: /* No such file or directory */
372372
errorCode = NSFileNoSuchFileError;

0 commit comments

Comments
 (0)