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

redox: Correct error on exec when file is not found #44000

Merged
merged 1 commit into from
Aug 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
redox: Correct error on exec when file is not found
`.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
  • Loading branch information
ids1024 committed Aug 20, 2017
commit a41c4f80d9e92bd34b293a4a817092c420276d82
2 changes: 1 addition & 1 deletion src/libstd/sys/redox/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl Command {
panic!("return from exec without err");
}
} else {
io::Error::new(io::ErrorKind::NotFound, "")
io::Error::from_raw_os_error(syscall::ENOENT)
}
}

Expand Down