diff --git a/src/main.rs b/src/main.rs index 214b4e5..88595fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 )) diff --git a/tests/lib.rs b/tests/lib.rs index 6202936..c9b001f 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -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(); }