diff options
author | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-02-04 14:47:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 14:47:28 +0100 |
commit | ca8facefb6b6b0ffd6e22507111847dbfc9a3c75 (patch) | |
tree | 9d04365be61e36df4a40d2fc659eacba439fe0ac /src | |
parent | 9355ecd54301372b6a919a2205340f904c7a51c6 (diff) |
Normalize some error messages
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcmd/installables.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 98a27ded9..9ad02b5f0 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -724,14 +724,13 @@ std::set<RealisedPath> toRealisedPaths( if (settings.isExperimentalFeatureEnabled("ca-derivations")) { if (!outputHashes.count(output.first)) throw Error( - "The derivation %s doesn't have an output " - "named %s", + "the derivation '%s' doesn't have an output named '%s'", store->printStorePath(bfd.drvPath), output.first); auto outputId = DrvOutput{outputHashes.at(output.first), output.first}; auto realisation = store->queryRealisation(outputId); if (!realisation) - throw Error("Cannot operate on output of unbuilt CA drv %s", outputId.to_string()); + throw Error("cannot operate on an output of unbuilt content-addresed derivation '%s'", outputId.to_string()); res.insert(RealisedPath{*realisation}); } else { |