summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-12 23:14:33 +0100
committerGitHub <noreply@github.com>2023-02-12 23:14:33 +0100
commit8b5be962f5dad64da1363052a3fcd4432cc08a71 (patch)
treef9c072829f8bce9eb0f1aa55b20c154154eca984 /core
parentdc66fdc11e86ae060e43dbeb417738c1b1995fe6 (diff)
fix: add WouldBlock error (#17339)
Diffstat (limited to 'core')
-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 874aa4ec6..ebe036609 100644
--- a/core/error_codes.rs
+++ b/core/error_codes.rs
@@ -56,6 +56,7 @@ fn get_io_error_code(err: &std::io::Error) -> &'static str {
// ErrorKind::ExecutableFileBusy => "ETXTBSY",
// ErrorKind::CrossesDevices => "EXDEV",
ErrorKind::PermissionDenied => "EACCES", // NOTE: Collides with EPERM ...
+ ErrorKind::WouldBlock => "EWOULDBLOCK", // NOTE: Collides with EAGAIN ...
_ => "",
}
}