diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-03-01 15:07:09 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-03-01 15:07:09 +0000 |
commit | 7ce10924c74e9e037b05558aeb5f0639df5955f6 (patch) | |
tree | a4956d7a76ba0b67f2b380bb2d7cf759f89d3bbf /src/libstore/build | |
parent | 4bbd80c5366711b8f1b5ad108ba22206d3bee783 (diff) |
Fix bad wanted output error as requested
- UsageError -> Error
- include drv path too
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 530f8829a..4c3bccf25 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -1274,7 +1274,9 @@ void DerivationGoal::checkPathValidity() // If we requested specific elements, the loop above removes all the valid // ones, so any that are left must be invalid. if (!wantedOutputsLeft.empty()) - throw UsageError("some wanted outputs are not provided by the derivation: %s", concatStringsSep(", ", wantedOutputsLeft)); + throw Error("derivation '%s' does not have wanted outputs %s", + worker.store.printStorePath(drvPath), + concatStringsSep(", ", quoteStrings(wantedOutputsLeft))); } |