We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26f465 commit ad58f8cCopy full SHA for ad58f8c
Foundation/NSURLSession/NSURLSessionTask.swift
@@ -655,9 +655,9 @@ fileprivate var userAgentString: String = {
655
fileprivate func errorCode(fileSystemError error: Error) -> Int {
656
func fromCocoaErrorCode(_ code: Int) -> Int {
657
switch code {
658
- case NSCocoaError.FileReadNoSuchFileError.rawValue:
+ case CocoaError.fileReadNoSuchFile.rawValue:
659
return NSURLErrorFileDoesNotExist
660
- case NSCocoaError.FileReadNoPermissionError.rawValue:
+ case CocoaError.fileReadNoPermission.rawValue:
661
return NSURLErrorNoPermissionsToReadFile
662
default:
663
return NSURLErrorUnknown
0 commit comments