mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
New CLI flag --replace-eval-errors
Co-authored-by: Farid Zakaria <farid.m.zakaria@gmail.com>
This commit is contained in:
parent
cdbe788c1f
commit
88705f848b
14 changed files with 93 additions and 20 deletions
11
tests/functional/replace-eval-errors.nix
Normal file
11
tests/functional/replace-eval-errors.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
missingAttr = let bar = { }; in bar.notExist;
|
||||
insideAList = [ (throw "a throw") ];
|
||||
deeper = { v = throw "v"; };
|
||||
failedAssertion = assert true; assert false; null;
|
||||
missingFile = builtins.readFile ./missing-file.txt;
|
||||
missingImport = import ./missing-import.nix;
|
||||
outOfBounds = builtins.elemAt [ 1 2 3 ] 100;
|
||||
failedCoersion = "${1}";
|
||||
failedAddition = 1.0 + "a string";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue