Throw MissingRealisation not plain Error in both resolveDerivedPath

Now we are consistent with the other `resolveDerivedPath`, and other
such functions.
This commit is contained in:
John Ericson
2023-08-25 09:55:07 -04:00
parent 2f5d3da806
commit 1c4caef14b
+1 -2
View File
@@ -399,8 +399,7 @@ StorePath resolveDerivedPath(Store & store, const SingleDerivedPath & req, Store
store.printStorePath(drvPath), bfd.output);
auto & optPath = outputPaths.at(bfd.output);
if (!optPath)
throw Error("'%s' does not yet map to a known concrete store path",
bfd.to_string(store));
throw MissingRealisation(bfd.drvPath->to_string(store), bfd.output);
return *optPath;
},
}, req.raw());