Merge pull request #10733 from alyssais/nix-store-delete

Improve nix-store --delete failure message
This commit is contained in:
John Ericson 2024-05-17 18:41:23 -04:00 committed by GitHub
commit d25e54d56a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -781,7 +781,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
throw Error( throw Error(
"Cannot delete path '%1%' since it is still alive. " "Cannot delete path '%1%' since it is still alive. "
"To find out why, use: " "To find out why, use: "
"nix-store --query --roots", "nix-store --query --roots and nix-store --query --referrers",
printStorePath(i)); printStorePath(i));
} }