Missed two other cases of needing to print url with link

pull/880/head
Tom Parker-Shemilt 5 years ago
parent a6ffbb738b
commit 1efa0de042

@ -346,7 +346,7 @@ async fn main() -> Result<(), Error> {
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 => {
println!("{:?}", link); println!("{} {:?}", url, link);
failed +=1; failed +=1;
continue; continue;
} }
@ -361,7 +361,7 @@ async fn main() -> Result<(), Error> {
println!("Failure occurred but only {}, so we're not worrying yet: {}", chrono_humanize::HumanTime::from(-since), formatter(err, url)); println!("Failure occurred but only {}, so we're not worrying yet: {}", chrono_humanize::HumanTime::from(-since), formatter(err, url));
} }
} else { } else {
println!("{:?}", link); println!("{} {:?}", url, link);
failed +=1; failed +=1;
continue; continue;
} }

Loading…
Cancel
Save