You've already forked awesome-rust
mirror of
https://github.com/rust-unofficial/awesome-rust.git
synced 2025-07-11 14:30:14 +02:00
Panic earlier on 404'ed links
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user