We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
POSIXErrorCode
1 parent b6ca869 commit bea8dbbCopy full SHA for bea8dbb
Sources/FoundationEssentials/Error/CocoaError+FilePath.swift
@@ -94,7 +94,7 @@ extension CocoaError {
94
var userInfo = userInfo
95
96
// (130280235) POSIXError.Code does not have a case for EOPNOTSUPP
97
- if errno != EOPNOTSUPP {
+ if errno != POSIXErrorCode.EOPNOTSUPP.rawValue {
98
guard let code = POSIXError.Code(rawValue: errno) else {
99
fatalError("Invalid posix errno \(errno)")
100
}
0 commit comments