1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2025-01-08 13:34:09 +02:00

Panic earlier on 404'ed links

This commit is contained in:
Tom Parker-Shemilt 2020-05-01 00:20:27 +01:00
parent c25e7f64b8
commit 1f6cb3749b

View File

@ -366,7 +366,7 @@ async fn main() -> Result<(), Error> {
for (url, link) in results.iter() {
if let Working::No(ref err) = link.working {
match err {
CheckerError::HttpError {status, ..} if *status == 301 || *status == 302 => {
CheckerError::HttpError {status, ..} if *status == 301 || *status == 302 || *status == 404 => {
println!("{} {:?}", url, link);
failed +=1;
continue;