mirror of
https://github.com/eza-community/eza
synced 2024-09-30 05:06:30 +00:00
Merge pull request #474 from eza-community/cafk-fix-13
fix(main): make os error 13 fail loud
This commit is contained in:
commit
79e2ed19d8
|
@ -199,7 +199,7 @@ impl<'args> Exa<'args> {
|
|||
match f.to_dir() {
|
||||
Ok(d) => dirs.push(d),
|
||||
Err(e) if e.kind() == ErrorKind::PermissionDenied => {
|
||||
warn!("Permission Denied: {e}");
|
||||
eprintln!("{file_path:?}: {e}");
|
||||
exit(exits::PERMISSION_DENIED);
|
||||
}
|
||||
Err(e) => writeln!(io::stderr(), "{file_path:?}: {e}")?,
|
||||
|
|
Loading…
Reference in a new issue