Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foundation.Process on Linux throws error Error Domain=NSCocoaErrorDomain Code=256 "(null)" if executable not found #4810

Open
weissi opened this issue Aug 15, 2023 · 1 comment
Labels

Comments

@weissi
Copy link
Member

weissi commented Aug 15, 2023

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).

@weissi weissi added the bug label Aug 15, 2023
@weissi
Copy link
Member Author

weissi commented Aug 15, 2023

Apple folk: This is rdar://113899085 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant