mirror of
https://github.com/nix-community/comma.git
synced 2024-09-11 03:55:24 +03:00
make error/warning about database clearer
This commit is contained in:
parent
959a31aaec
commit
48b723b201
@ -16,10 +16,10 @@ pub fn check_database() {
|
||||
let cache_dir = base.get_cache_home();
|
||||
let database_file = cache_dir.join("files");
|
||||
if !database_file.exists() {
|
||||
println!("Warning: Nix-index database does not exist, try updating with `--update`.");
|
||||
println!("Warning: Nix-index database does not exist, try updating with `comma --update`.");
|
||||
} else if is_database_old(database_file) {
|
||||
println!(
|
||||
"Warning: Nix-index database is older than 30 days, try updating with `--update`."
|
||||
"Warning: Nix-index database is older than 30 days, try updating with `comma --update`."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user