forked from lix-project/lix
Merge pull request #9797 from edolstra/fix-error-message
Store::buildPaths(): Fix display of store paths
This commit is contained in:
commit
b5ed36e663
|
@ -26,9 +26,9 @@ void Store::buildPaths(const std::vector<DerivedPath> & reqs, BuildMode buildMod
|
|||
}
|
||||
if (i->exitCode != Goal::ecSuccess) {
|
||||
if (auto i2 = dynamic_cast<DerivationGoal *>(i.get()))
|
||||
failed.insert(std::string { i2->drvPath.to_string() });
|
||||
failed.insert(printStorePath(i2->drvPath));
|
||||
else if (auto i2 = dynamic_cast<PathSubstitutionGoal *>(i.get()))
|
||||
failed.insert(std::string { i2->storePath.to_string()});
|
||||
failed.insert(printStorePath(i2->storePath));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue