mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 11:19:35 +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.
10 lines
192 B
Nix
10 lines
192 B
Nix
# Test that deepSeq reports list index and attribute name in error traces.
|
|
|
|
builtins.deepSeq [
|
|
1
|
|
{
|
|
a = 2;
|
|
b = throw "error in attr in list element";
|
|
}
|
|
3
|
|
] "unexpected success"
|