Open
Description
When creating a Process
with executableURL
set to a file that doesn't exist, it throws
Error Domain=NSCocoaErrorDomain Code=256 "(null)"
which corresponds to an NSError
with domain: NSCocoaErrorDomain
(correct) and code: NSFileReadUnknownError
(== 256`, incorrect).
Darwin systems have the correct
Error Domain=NSCocoaErrorDomain Code=4 "The file “exist” doesn’t exist." UserInfo={NSFilePath=/dev/null/does/not/exist}
which is code: NSFileNoSuchFileError
(== 4
).