diff options
author | Kevin Amado <kamadorueda@gmail.com> | 2021-10-14 23:23:04 -0500 |
---|---|---|
committer | Kevin Amado <kamadorueda@gmail.com> | 2021-10-14 23:23:05 -0500 |
commit | 1bdeef83958251e728abe9398b4286cb6b5e9551 (patch) | |
tree | 91f2d0cfa2499b0ffcf81d77d08c53741057c25c /src/libexpr/nixexpr.hh | |
parent | 4c0cde95ad8dc95f876e5cf32790e73e08f49b28 (diff) |
add pos to EvalState::forceValue
- This way we improve error messages
on infinite recursion
- Demo:
```nix
let
x = builtins.fetchMercurial x;
in
x
```
- Before:
```bash
$ nix-instantiate --show-trace --strict
error: infinite recursion encountered
```
- After:
```bash
nix-instantiate --show-trace --strict
error: infinite recursion encountered
at /data/github/kamadorueda/test/default.nix:2:7:
1| let
2| x = builtins.fetchMercurial x;
| ^
3| in
```
Mentions: #3505
Diffstat (limited to 'src/libexpr/nixexpr.hh')
0 files changed, 0 insertions, 0 deletions