Foundation.Process on Linux throws error Error Domain=NSCocoaErrorDomain Code=256 "(null)"
if executable not found
#4810
Labels
When creating a
Process
withexecutableURL
set to a file that doesn't exist, it throwswhich corresponds to an
NSError
withdomain: NSCocoaErrorDomain
(correct) andcode: NSFileReadUnknownError
(== 256`, incorrect).Darwin systems have the correct
which is
code: NSFileNoSuchFileError
(==4
).The text was updated successfully, but these errors were encountered: