Files
lix/tests/functional
Jade Lovelace faf00ad022 libexpr: significantly improve error messages for bad attr paths
This commit makes Lix include the summarized content of the value being
indexed when it is bad.

lix/lix2 » nix eval --expr '{x.y = 2;}' 'x.y.z'
error: the value being indexed in the selection path 'x.y.z' at 'x.y' should be a set but is an integer: 2

lix/lix2 » nix eval --expr '{x.y = { a = 3; };}' 'x.y.z'
error: attribute 'z' in selection path 'x.y.z' not found inside path 'x.y', whose contents are: { a = 3; }
       Did you mean a?

lix/lix2 » nix eval --expr '{x.y = { a = 3; };}' 'x.y.1'
error: the expression selected by the selection path 'x.y.1' should be a list but is a set: { a = 3; }

Change-Id: I3202aba0e437e00b4c6d3ee287a2d9a7c6892dbf
2024-12-10 15:43:31 -08:00
..
2024-11-18 12:31:19 -08:00
2024-10-05 16:21:19 +00:00
2024-11-06 18:11:47 -08:00
2023-12-01 12:06:43 -05:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2023-12-01 12:06:43 -05:00
2024-05-06 18:56:40 +02:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-08-17 15:48:10 +00:00
2024-03-29 22:57:40 -07:00
2024-03-29 22:57:40 -07:00
2024-08-17 15:48:10 +00:00
2024-05-28 04:20:00 +00:00