mirror of
https://github.com/NixOS/nix
synced 2025-07-12 19:05:08 +02:00
add pos to errorinfo, remove from hints
This commit is contained in:
parent
1b801cec40
commit
55eb717148
13 changed files with 507 additions and 194 deletions
|
@ -16,4 +16,6 @@ nix-env --foo 2>&1 | grep "no operation"
|
|||
nix-env -q --foo 2>&1 | grep "unknown flag"
|
||||
|
||||
# Eval Errors.
|
||||
nix-instantiate --eval -E 'let a = {} // a; in a.foo' 2>&1 | grep "infinite recursion encountered, at .*(string).*:1:15$"
|
||||
eval_res=$(nix-instantiate --eval -E 'let a = {} // a; in a.foo' 2>&1 || true)
|
||||
echo $eval_res | grep "(string) (1:15)"
|
||||
echo $eval_res | grep "infinite recursion encountered"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue