summaryrefslogtreecommitdiff
path: root/core/error_codes.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2022-05-17 19:20:57 +0200
committerGitHub <noreply@github.com>2022-05-17 19:20:57 +0200
commit9766399a3fefcab322051b4a7af41f9d40d79150 (patch)
tree23b137a41662f61df8c98802c845e4bf7e7a109b /core/error_codes.rs
parent68bf43fca7990d4e623b66243c2840ca7f0c3628 (diff)
fix(core): support classifying ENOTDIR (#14646)
Diffstat (limited to 'core/error_codes.rs')
-rw-r--r--core/error_codes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/error_codes.rs b/core/error_codes.rs
index b34cbe639..6a8dd9fa3 100644
--- a/core/error_codes.rs
+++ b/core/error_codes.rs
@@ -94,6 +94,7 @@ fn get_os_error_code(errno: i32) -> &'static str {
libc::ENOMEM => "ENOMEM",
libc::ENOSPC => "ENOSPC",
libc::ENOTCONN => "ENOTCONN",
+ libc::ENOTDIR => "ENOTDIR",
libc::ENOTEMPTY => "ENOTEMPTY",
libc::ENOTSOCK => "ENOTSOCK",
libc::ENOTSUP => "ENOTSUP",