From 1efa0de042194d8b25a928fe1b398a83b4f600aa Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Tue, 21 Apr 2020 11:18:53 +0100 Subject: [PATCH] Missed two other cases of needing to print url with link --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2296f52..7e927f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -346,7 +346,7 @@ async fn main() -> Result<(), Error> { if let Working::No(ref err) = link.working { match err { CheckerError::HttpError {status, ..} if *status == 301 || *status == 302 => { - println!("{:?}", link); + println!("{} {:?}", url, link); failed +=1; 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)); } } else { - println!("{:?}", link); + println!("{} {:?}", url, link); failed +=1; continue; }