Nicer "failure only occured X ago" message

pull/860/head
Tom Parker-Shemilt 4 years ago
parent d4b44fd6d5
commit 60e614f51e

@ -21,4 +21,5 @@ async-std = "1"
log = "0.4"
regex = "1"
scraper = "0.11"
chrono = { version = "0.4", features = ["serde"] }
chrono = { version = "0.4", features = ["serde"] }
chrono-humanize = "0.0.11"

@ -352,7 +352,7 @@ async fn main() -> Result<(), Error> {
println!("{:?}", link);
failed +=1;
} else {
println!("Failure occurred but only {} ago, so we're not worrying yet: {}", since, msg);
println!("Failure occurred but only {}, so we're not worrying yet: {}", chrono_humanize::HumanTime::from(-since), msg);
}
}
}

Loading…
Cancel
Save