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:
parent
6cd36a5ec5
commit
1bc2113f70
1 changed files with 1 additions and 2 deletions
|
@ -14,7 +14,6 @@ use std::{
|
||||||
|
|
||||||
use builtins::BuiltinMap;
|
use builtins::BuiltinMap;
|
||||||
use nix::{
|
use nix::{
|
||||||
errno::Errno,
|
|
||||||
fcntl::OFlag,
|
fcntl::OFlag,
|
||||||
libc,
|
libc,
|
||||||
sys::{
|
sys::{
|
||||||
|
@ -57,7 +56,7 @@ pub enum RuntimeError {
|
||||||
SpawnFailed(#[source] io::Error),
|
SpawnFailed(#[source] io::Error),
|
||||||
|
|
||||||
#[error("failed to fork: {0}")]
|
#[error("failed to fork: {0}")]
|
||||||
ForkFailed(#[source] Errno),
|
ForkFailed(#[source] nix::Error),
|
||||||
|
|
||||||
#[error("waitpid error: {0}")]
|
#[error("waitpid error: {0}")]
|
||||||
WaitPid(nix::Error),
|
WaitPid(nix::Error),
|
||||||
|
|
Loading…
Reference in a new issue