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:
parent
c25e7f64b8
commit
1f6cb3749b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue