浏览代码

Added the Linux file not found error

Apollo 1 月之前
父节点
当前提交
7e98e22545
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();