aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang/eval-fail-duplicate-traces.nix
blob: 17ce374ece7dc4a4fbc2f8d435b7bace875a7754 (plain)
1
2
3
4
5
6
7
8
9
# Check that we only omit duplicate stack traces when there's a bunch of them.
# Here, there's only a couple duplicate entries, so we output them all.
let
  throwAfter = n:
    if n > 0
    then throwAfter (n - 1)
    else throw "Uh oh!";
in
  throwAfter 2