mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 19:29:36 +01:00
When deepSeq encounters an error while evaluating a list element, the error trace now includes the list index, making it easier to locate the problematic element.
25 lines
767 B
Text
25 lines
767 B
Text
error:
|
|
… while calling the 'deepSeq' builtin
|
|
at /pwd/lang/eval-fail-deepseq-list-attr.nix:3:1:
|
|
2|
|
|
3| builtins.deepSeq [
|
|
| ^
|
|
4| 1
|
|
|
|
… while evaluating list element at index 1
|
|
|
|
… while evaluating the attribute 'b'
|
|
at /pwd/lang/eval-fail-deepseq-list-attr.nix:7:5:
|
|
6| a = 2;
|
|
7| b = throw "error in attr in list element";
|
|
| ^
|
|
8| }
|
|
|
|
… while calling the 'throw' builtin
|
|
at /pwd/lang/eval-fail-deepseq-list-attr.nix:7:9:
|
|
6| a = 2;
|
|
7| b = throw "error in attr in list element";
|
|
| ^
|
|
8| }
|
|
|
|
error: error in attr in list element
|