mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Always print addErrorContext traces
This commit is contained in:
parent
38ba96d7b0
commit
bebacc475c
7 changed files with 90 additions and 17 deletions
|
@ -0,0 +1,9 @@
|
|||
let
|
||||
countDown = n:
|
||||
if n == 0
|
||||
then throw "kaboom"
|
||||
else
|
||||
builtins.addErrorContext
|
||||
"while counting down; n = ${toString n}"
|
||||
("x" + countDown (n - 1));
|
||||
in countDown 10
|
Loading…
Add table
Add a link
Reference in a new issue