Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/std/src/sys/io/error/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ pub fn decode_error_kind(errno: i32) -> io::ErrorKind {
c::WSAENETDOWN => NetworkDown,
c::WSAENETUNREACH => NetworkUnreachable,
c::WSAEDQUOT => QuotaExceeded,
// Not a prefect mapping but this error is only returned when writing to
Comment thread
joshtriplett marked this conversation as resolved.
Outdated
// a socket after shutting down the write-end. On Unix targets, EPIPE is
// returned in those cases.
c::WSAESHUTDOWN => BrokenPipe,

_ => Uncategorized,
}
Expand Down
Loading