Skip to content

Commit a41c4f8

Browse files
committed
redox: Correct error on exec when file is not found
`.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
1 parent 3d9f57a commit a41c4f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/redox/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ impl Command {
336336
panic!("return from exec without err");
337337
}
338338
} else {
339-
io::Error::new(io::ErrorKind::NotFound, "")
339+
io::Error::from_raw_os_error(syscall::ENOENT)
340340
}
341341
}
342342

0 commit comments

Comments
 (0)