Commit f8ea911f authored by Adam Joseph's avatar Adam Joseph Committed by Jörg Thalheim
Browse files

lib.customisation.callPackageWith: use throw, not abort

parent 9b58faad
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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