Unverified Commit 2f0df06f authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

lib.customisation.callPackageWith: fix line number interpolation (#435941)

parents e02cb9e1 5a07f707
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -287,7 +287,7 @@ rec {
          loc = builtins.unsafeGetAttrPos arg fargs;
        in
        "Function called without required argument \"${arg}\" at "
        + "${loc.file}:${loc.line}${prettySuggestions (getSuggestions arg)}";
        + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";

      # Only show the error for the first missing argument
      error = errorForArg (head (attrNames missingArgs));