command-not-found: Add more context to error msg

This commit is contained in:
Jessie Ross
2025-06-17 11:11:39 +07:00
parent 9f9bd4f36f
commit 0e144f8f27

View File

@@ -14,8 +14,9 @@ if (! -e $dbPath) {
print STDERR "$program: command not found\n";
print STDERR "\n";
print STDERR "command-not-found: Missing package database\n";
print STDERR "This likely means the database hasn't been generated yet.\n";
print STDERR "This tool requires nix-channels to generate the database.\n";
print STDERR "command-not-found is a tool for searching for missing packages.\n";
print STDERR "No database was found, this likely means the database hasn't been generated yet.\n";
print STDERR "This tool requires nix-channels to generate the database for the `nixos` channel.\n";
print STDERR "\n";
print STDERR "If you are using nix-channels you can run:\n";
print STDERR " sudo nix-channels --update\n";