refactor(runtime): make use of nix::Error consistent

Reviewed-by: cpli <dev@cpli.in>
Reviewed-by: ElKowar
Signed-off-by: Charlotte Meyer <dev@buffet.sh>
This commit is contained in:
buffet 2022-10-24 19:52:38 +00:00
parent 6cd36a5ec5
commit 1bc2113f70

View file

@ -14,7 +14,6 @@ use std::{
use builtins::BuiltinMap;
use nix::{
errno::Errno,
fcntl::OFlag,
libc,
sys::{
@ -57,7 +56,7 @@ pub enum RuntimeError {
SpawnFailed(#[source] io::Error),
#[error("failed to fork: {0}")]
ForkFailed(#[source] Errno),
ForkFailed(#[source] nix::Error),
#[error("waitpid error: {0}")]
WaitPid(nix::Error),