mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 11:36:03 +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.
12 lines
475 B
Text
12 lines
475 B
Text
error:
|
|
… while calling the 'genericClosure' builtin
|
|
at /pwd/lang/eval-fail-genericClosure-operator-not-list.nix:1:1:
|
|
1| builtins.genericClosure {
|
|
| ^
|
|
2| startSet = [ { key = 1; } ];
|
|
|
|
… while calling operator on genericClosure element { key = 1; }
|
|
|
|
… while evaluating the return value of the `operator` passed to builtins.genericClosure
|
|
|
|
error: expected a list but found a string: "not a list"
|