diff options
author | Yingbo (Max) Wang <maxwyb@gmail.com> | 2019-05-07 18:58:58 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-07 21:58:57 -0400 |
commit | ec9080f34c936d9af56cca68de664954053bf423 (patch) | |
tree | ede97b27acebc225cc69da70433b626af63cc0e6 /cli/errors.rs | |
parent | 1f7ad17152c03b140c997590c897b89fbfea7cea (diff) |
Add Deno.chown (#2292)
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()), }, |