mirror of
https://github.com/NixOS/nix
synced 2025-07-09 03:43:54 +02:00
Print value on type error
Adds the failing value to `value is <TYPE> while a <TYPE> is expected` error messages.
This commit is contained in:
parent
b74ec56da9
commit
cb7fbd4d83
19 changed files with 227 additions and 136 deletions
|
@ -8,7 +8,7 @@ prs: 9658
|
|||
Previously an incorrect `with` expression would report no position at all, making it hard to determine where the error originated:
|
||||
|
||||
```
|
||||
nix-repl> with 1; a
|
||||
nix-repl> with 1; a
|
||||
error:
|
||||
… <borked>
|
||||
|
||||
|
@ -27,5 +27,5 @@ error:
|
|||
1| with 1; a
|
||||
| ^
|
||||
|
||||
error: value is an integer while a set was expected
|
||||
error: expected a set but found an integer
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue