Skip to content

Commit

Permalink
redox: Correct error on exec when file is not found
Browse files Browse the repository at this point in the history
`.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
  • Loading branch information
ids1024 committed Aug 20, 2017
1 parent 3d9f57a commit a41c4f8
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit a41c4f8

Please sign in to comment.