summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
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 /runtime/errors.rs
parentdc66fdc11e86ae060e43dbeb417738c1b1995fe6 (diff)
fix: add WouldBlock error (#17339)
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index 68fae9387..b26fd9fe3 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -58,7 +58,7 @@ fn get_io_error_class(error: &io::Error) -> &'static str {
WriteZero => "WriteZero",
UnexpectedEof => "UnexpectedEof",
Other => "Error",
- WouldBlock => unreachable!(),
+ WouldBlock => "WouldBlock",
// Non-exhaustive enum - might add new variants
// in the future
_ => "Error",