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

This commit is contained in:
Wolfgang Walther
2025-08-22 17:58:42 +00:00
committed by GitHub
+1 -1
View File
@@ -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));