Explorar o código

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

fix(main): make os error 13 fail loud
Christina Sørensen %!s(int64=2) %!d(string=hai) anos
pai
achega
79e2ed19d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

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