Skip to content

Commit

Permalink
Throw MissingRealisation not plain Error in both `resolveDerivedP…
Browse files Browse the repository at this point in the history
…ath`

Now we are consistent with the other `resolveDerivedPath`, and other
such functions.
  • Loading branch information
Ericson2314 committed Aug 25, 2023
1 parent 2f5d3da commit 1c4caef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstore/misc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1c4caef

Please sign in to comment.