diff --git a/src/filesystem.rs b/src/filesystem.rs index 3c57671..5ae4701 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -52,7 +52,10 @@ pub async fn check_file_length(file: &PathBuf) -> Option { } }, Err(err) => { - error!("Failed to open file for testing... {:?} {}", file, err); + match err.kind() { + ErrorKind::NotFound => {/* ignore */}, + _ => warn!("Failed to open file to check length. {:?} {}", file, err), + } }, } None diff --git a/src/main.rs b/src/main.rs index d5211e6..0ee7bc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -246,6 +246,9 @@ async fn process(mut site: Website, db: Surreal, reqwest: reqwest::Clien if disk_len == len { skip_download = true; } + } else { + // File not found (or other error). + // Program will continue on it's way, downloading content. } } }