0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 13:49:37 -04:00
This commit is contained in:
Bartek Iwańczuk 2021-09-02 21:15:12 +02:00
parent 37982f662f
commit 37efd2a15b
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -138,7 +138,6 @@ fn get_hyper_error_class(_error: &hyper::Error) -> &'static str {
#[cfg(unix)]
fn get_nix_error_class(error: &nix::Error) -> &'static str {
use nix::errno::Errno::*;
match error {
nix::Error::ECHILD => "NotFound",
nix::Error::EINVAL => "TypeError",
@ -146,7 +145,7 @@ fn get_nix_error_class(error: &nix::Error) -> &'static str {
nix::Error::ENOTTY => "BadResource",
nix::Error::EPERM => "PermissionDenied",
nix::Error::ESRCH => "NotFound",
nix::Error::Sys::UnknownErrno => "Error",
nix::Error::UnknownErrno => "Error",
nix::Error::ENOTSUP => unreachable!(),
_ => "Error",
}