Skip to content

Commit

Permalink
Fix bad wanted output error as requested
Browse files Browse the repository at this point in the history
- UsageError -> Error

- include drv path too
  • Loading branch information
Ericson2314 committed Mar 1, 2021
1 parent 4bbd80c commit 7ce1092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstore/build/derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}


Expand Down

0 comments on commit 7ce1092

Please sign in to comment.