Change wording of outdated cache message

This commit is contained in:
Danilo Bargen 2018-10-22 17:48:20 +02:00
commit e2d61e3ef2
2 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ fn check_cache(args: &Args, cache: &Cache) {
println!(
"{}",
Color::Red.paint(format!(
"Cache wasn't updated in {} days.\n\
"Cache wasn't updated for more than {} days.\n\
You should probably run `tldr --update` soon.",
MAX_CACHE_AGE / 24 / 3600
))

View file

@ -125,14 +125,14 @@ fn test_quiet_old_cache() {
.assert()
.with_args(&["tldr"])
.succeeds()
.stdout().contains("Cache wasn't updated in ")
.stdout().contains("Cache wasn't updated for more than ")
.unwrap();
testenv
.assert()
.with_args(&["tldr", "--quiet"])
.succeeds()
.stdout().doesnt_contain("Cache wasn't updated in ")
.stdout().doesnt_contain("Cache wasn't updated for more than ")
.unwrap();
}