lib.customisation: inherit unsafeGetAttrsPos in let-in (#446761)

authored by

Alyssa Ross and committed by
GitHub
f0cc6e63 40752179

+2 -1
+2 -1
lib/customisation.nix
··· 3 let 4 inherit (builtins) 5 intersectAttrs 6 ; 7 inherit (lib) 8 functionArgs ··· 303 errorForArg = 304 arg: 305 let 306 - loc = builtins.unsafeGetAttrPos arg fargs; 307 in 308 "Function called without required argument \"${arg}\" at " 309 + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";
··· 3 let 4 inherit (builtins) 5 intersectAttrs 6 + unsafeGetAttrPos 7 ; 8 inherit (lib) 9 functionArgs ··· 304 errorForArg = 305 arg: 306 let 307 + loc = unsafeGetAttrPos arg fargs; 308 in 309 "Function called without required argument \"${arg}\" at " 310 + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";