Skip to content

Commit 8c303ed

Browse files
committed
Auto merge of #44000 - ids1024:redox-exec-error, r=alexcrichton
redox: Correct error on exec when file is not found `.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
2 parents c1111df + a41c4f8 commit 8c303ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/redox/process.rs

+1-1
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)