mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
std: handle ConnectionTimedOut in switch
regression from #5266 closes #5270
This commit is contained in:
parent
06e6d39c6c
commit
0e30edd8d0
@ -548,6 +548,7 @@ fn preadNoEof(file: std.fs.File, buf: []u8, offset: u64) !void {
|
||||
error.BrokenPipe => return error.UnableToReadElfFile,
|
||||
error.Unseekable => return error.UnableToReadElfFile,
|
||||
error.ConnectionResetByPeer => return error.UnableToReadElfFile,
|
||||
error.ConnectionTimedOut => return error.UnableToReadElfFile,
|
||||
error.InputOutput => return error.FileSystem,
|
||||
error.Unexpected => return error.Unexpected,
|
||||
error.WouldBlock => return error.Unexpected,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user