1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 11:19:35 +01:00

libexpr: add list index to deepSeq error traces

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.
This commit is contained in:
Robert Hensing 2025-11-21 23:51:07 +01:00
parent 59a566db13
commit a812b6c6e6
3 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,10 @@
# 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"