1
0
Fork 0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-11-20 11:36:11 -05: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() { for (url, link) in results.iter() {
if let Working::No(ref err) = link.working { if let Working::No(ref err) = link.working {
match err { match err {
CheckerError::HttpError {status, ..} if *status == 301 || *status == 302 => { CheckerError::HttpError {status, ..} if *status == 301 || *status == 302 || *status == 404 => {
println!("{} {:?}", url, link); println!("{} {:?}", url, link);
failed +=1; failed +=1;
continue; continue;