mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Show which element(s) are involved at each error point: - When an element is missing the "key" attribute, show the element - When an element is not an attribute set, show the element - When comparing keys fails, show both elements being compared - When calling operator fails, show which element was being processed This provides concrete context using ValuePrinter with errorPrintOptions. Note: errorPrintOptions uses maxDepth=10 by default, which may print quite deeply nested structures in error messages. This could potentially be overwhelming, but follows the existing default for error contexts.
18 lines
727 B
Text
18 lines
727 B
Text
error:
|
|
… while calling the 'seq' builtin
|
|
at /pwd/lang/eval-fail-genericClosure-deeply-nested-element.nix:25:1:
|
|
24| in
|
|
25| builtins.seq finiteVal (
|
|
| ^
|
|
26| builtins.genericClosure {
|
|
|
|
… while calling the 'genericClosure' builtin
|
|
at /pwd/lang/eval-fail-genericClosure-deeply-nested-element.nix:26:3:
|
|
25| builtins.seq finiteVal (
|
|
26| builtins.genericClosure {
|
|
| ^
|
|
27| startSet = [
|
|
|
|
… in genericClosure element { finite = { a0 = { a1 = { a2 = { a3 = { a4 = { a5 = { a6 = { a7 = { a8 = { ... }; }; }; }; }; }; }; }; }; }; «1 attribute elided» }
|
|
|
|
error: attribute 'key' missing
|