Skip to content

Commit 5103154

Browse files
committed
ErrorKind::FilesystemLoop: Generalise dscription
Signed-off-by: Ian Jackson <[email protected]>
1 parent 49ce472 commit 5103154

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

std/src/io/error.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ pub enum ErrorKind {
155155
/// The filesystem or storage medium is read-only, but a write operation was attempted.
156156
#[unstable(feature = "io_error_more", issue = "86442")]
157157
ReadOnlyFilesystem,
158-
/// Loop in the filesystem; often, too many levels of symbolic links.
158+
/// Loop in the filesystem or IO subsystem; often, too many levels of symbolic links.
159159
///
160-
/// There was a loop (or excessively long chain) resolving a filesystem object.
160+
/// There was a loop (or excessively long chain) resolving a filesystem object
161+
/// or file IO object.
161162
///
162163
/// On Unix this is usually the result of a symbolic link loop; or, of exceeding the
163164
/// system-specific limit on the depth of symlink traversal.
@@ -338,7 +339,7 @@ impl ErrorKind {
338339
PermissionDenied => "permission denied",
339340
ReadOnlyFilesystem => "read-only filesystem or storage medium",
340341
StaleNetworkFileHandle => "stale network file handle",
341-
FilesystemLoop => "filesystem loop (e.g. symbolic link loop)",
342+
FilesystemLoop => "filesystem loop or indirection limit (e.g. symlink loop)",
342343
NotSeekable => "seek on unseekable file",
343344
TimedOut => "timed out",
344345
TooManyLinks => "too many links",

0 commit comments

Comments
 (0)