Quellcode durchsuchen

Added the Linux file not found error

Apollo vor 1 Monat
Ursprung
Commit
7e98e22545
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/main.rs

+ 1 - 1
src/main.rs

@@ -33,7 +33,7 @@ fn main() -> Result<(), anyhow::Error> {
             println!("{}", c);
         }
         Err(err) => {
-            if err.to_string() != "The system cannot find the file specified. (os error 2)".to_string() {
+            if err.to_string() != "The system cannot find the file specified. (os error 2)".to_string() && err.to_string() != "No such file or directory (os error 2)".to_string() {
                 anyhow::bail!(err);
             }
             let mut index = TileIndex::new();