Merge pull request #474 from eza-community/cafk-fix-13

fix(main): make os error 13 fail loud
This commit is contained in:
Christina Sørensen 2023-10-04 05:48:22 +02:00 committed by GitHub
commit 79e2ed19d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}")?,