lib.customisation: inherit unsafeGetAttrsPos in let-in

This commit is contained in:
Yueh-Shun Li
2025-09-28 03:05:49 +08:00
parent 545b70fb2f
commit 4fa63ffcca
+2 -1
View File
@@ -3,6 +3,7 @@
let
inherit (builtins)
intersectAttrs
unsafeGetAttrPos
;
inherit (lib)
functionArgs
@@ -303,7 +304,7 @@ rec {
errorForArg =
arg:
let
loc = builtins.unsafeGetAttrPos arg fargs;
loc = unsafeGetAttrPos arg fargs;
in
"Function called without required argument \"${arg}\" at "
+ "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";