We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2a8fae commit a7b8a13Copy full SHA for a7b8a13
src/libstd/io/mod.rs
@@ -1408,7 +1408,21 @@ pub fn standard_error(kind: IoErrorKind) -> IoError {
1408
EndOfFile => "end of file",
1409
IoUnavailable => "I/O is unavailable",
1410
InvalidInput => "invalid input",
1411
- _ => fail!()
+ OtherIoError => "unknown I/O error",
1412
+ FileNotFound => "file not found",
1413
+ PermissionDenied => "permission denied",
1414
+ ConnectionFailed => "connection failed",
1415
+ Closed => "stream is closed",
1416
+ ConnectionRefused => "connection refused",
1417
+ ConnectionReset => "connection reset",
1418
+ ConnectionAborted => "connection aborted",
1419
+ NotConnected => "not connected",
1420
+ BrokenPipe => "broken pipe",
1421
+ PathAlreadyExists => "file exists",
1422
+ PathDoesntExist => "no such file",
1423
+ MismatchedFileTypeForOperation => "mismatched file type",
1424
+ ResourceUnavailable => "resource unavailable",
1425
+ TimedOut => "operation timed out"
1426
};
1427
IoError {
1428
kind: kind,
0 commit comments