aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-08-16 00:05:35 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-08-25 09:55:07 -0400
commit1c4caef14b51dbb4f749c45311c8e2c9acb75a60 (patch)
tree396f4bc82899a9c1050e30df4930c0ce7964f141 /src
parent2f5d3da8062ae58242a8de2bad470a66478edea4 (diff)
Throw `MissingRealisation` not plain `Error` in both `resolveDerivedPath`
Now we are consistent with the other `resolveDerivedPath`, and other such functions.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/misc.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index 631213306..c043b9b93 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -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());