From 9766399a3fefcab322051b4a7af41f9d40d79150 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Tue, 17 May 2022 19:20:57 +0200 Subject: fix(core): support classifying ENOTDIR (#14646) --- core/error_codes.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'core/error_codes.rs') 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", -- cgit v1.2.3