mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Removed redundant error message when using hyperlinks if file is a broken symlink
This commit is contained in:
parent
dd2ef0aad6
commit
282224e353
1 changed files with 10 additions and 2 deletions
|
@ -118,8 +118,16 @@ impl Name {
|
|||
}
|
||||
}
|
||||
Err(err) => {
|
||||
print_error!("{}: {}.", name, err);
|
||||
name
|
||||
match err.kind() {
|
||||
std::io::ErrorKind::NotFound => {
|
||||
// If this happens, it just means the file is a broken symlink. This is not an error, and the user is already warned that the symlink is broken by the colors.
|
||||
name
|
||||
}
|
||||
_ => {
|
||||
print_error!("{}: {}", name, err);
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue