Parcourir la source

Added the Linux file not found error

Apollo il y a 1 mois
Parent
commit
7e98e22545
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();