diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-11-22 14:29:02 -0800 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2023-11-30 07:43:16 +0100 |
commit | f8ea911f7c4e44b167d4b1b51f6d00ebd93e1ed1 (patch) | |
tree | 6f312a7d5920b32ace9eea05d560a697cf67e430 /lib | |
parent | 9b58faad99f8418baea31a6a1293c7f9c21b1d86 (diff) |
lib.customisation.callPackageWith: use throw, not abort
Diffstat (limited to 'lib')
-rw-r--r-- | lib/customisation.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/customisation.nix b/lib/customisation.nix index dec1ab9f4faa0..5e290230ca4e3 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -200,7 +200,9 @@ rec { # Only show the error for the first missing argument 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 |