mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
toJSON: Add attribute path to trace
This commit is contained in:
parent
2d1d81114d
commit
33d58a90c2
4 changed files with 88 additions and 3 deletions
10
tests/lang/eval-fail-toJSON.nix
Normal file
10
tests/lang/eval-fail-toJSON.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
builtins.toJSON {
|
||||
a.b = [
|
||||
true
|
||||
false
|
||||
"it's a bird"
|
||||
{
|
||||
c.d = throw "hah no";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue