mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
lib.customisation.callPackageWith: use throw, not abort
This commit is contained in:
parent
9b58faad99
commit
f8ea911f7c
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ rec {
|
||||||
# Only show the error for the first missing argument
|
# Only show the error for the first missing argument
|
||||||
error = errorForArg missingArgs.${head (attrNames missingArgs)};
|
error = errorForArg missingArgs.${head (attrNames missingArgs)};
|
||||||
|
|
||||||
in if missingArgs == {} then makeOverridable f allArgs else abort error;
|
in if missingArgs == {}
|
||||||
|
then makeOverridable f allArgs
|
||||||
|
else throw "lib.customisation.callPackageWith: ${error}";
|
||||||
|
|
||||||
|
|
||||||
/* Like callPackage, but for a function that returns an attribute
|
/* Like callPackage, but for a function that returns an attribute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue