1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

unsupported(): Show the name of the unsupported operation

This commit is contained in:
Eelco Dolstra 2019-01-18 13:34:23 +01:00
parent df03430586
commit 7cc1a2593e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 31 additions and 76 deletions

View file

@ -562,10 +562,10 @@ void Store::buildPaths(const PathSet & paths, BuildMode buildMode)
{
for (auto & path : paths)
if (isDerivation(path))
unsupported();
unsupported("buildPaths");
if (queryValidPaths(paths).size() != paths.size())
unsupported();
unsupported("buildPaths");
}