diff options
Diffstat (limited to 'cli/errors.rs')
-rw-r--r-- | cli/errors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index 424091584..71c14282b 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -186,6 +186,12 @@ impl From<UnixError> for DenoError { Errno::EINVAL.desc().to_owned(), ), }, + UnixError::Sys(Errno::ENOENT) => Self { + repr: Repr::Simple( + ErrorKind::NotFound, + Errno::ENOENT.desc().to_owned(), + ), + }, UnixError::Sys(err) => Self { repr: Repr::Simple(ErrorKind::UnixError, err.desc().to_owned()), }, |