mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-23 00:24:17 +02:00
Change wording of outdated cache message
This commit is contained in:
parent
8b2a51ba0a
commit
e2d61e3ef2
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
))
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue