forked from lix-project/lix
Qyriad
4c7165be86
Turns errors like this:
let
throwMsg = a: throw (a + " invalid bar");
in throwMsg "bullshit"
error:
… from call site
at «string»:3:4:
2| throwMsg = a: throw (a + " invalid bar");
3| in throwMsg "bullshit"
| ^
… while calling 'throwMsg'
at «string»:2:14:
1| let
2| throwMsg = a: throw (a + " invalid bar");
| ^
3| in throwMsg "bullshit"
… while calling the 'throw' builtin
at «string»:2:17:
1| let
2| throwMsg = a: throw (a + " invalid bar");
| ^
3| in throwMsg "bullshit"
error: bullshit invalid bar
into errors like this:
let
throwMsg = a: throw (a + " invalid bar");
in throwMsg "bullshit"
error:
… from call site
at «string»:3:4:
2| throwMsg = a: throw (a + " invalid bar");
3| in throwMsg "bullshit"
| ^
… while calling 'throwMsg'
at «string»:2:14:
1| let
2| throwMsg = a: throw (a + " invalid bar");
| ^
3| in throwMsg "bullshit"
… caused by explicit throw
at «string»:2:17:
1| let
2| throwMsg = a: throw (a + " invalid bar");
| ^
3| in throwMsg "bullshit"
error: bullshit invalid bar
Change-Id: I593688928ece20f97999d1bf03b2b46d9ac338cb
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
error:
|
|
… from call site
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:9:3:
|
|
8| in
|
|
9| throwAfter 2
|
|
| ^
|
|
10|
|
|
|
|
… while calling 'throwAfter'
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
|
|
3| let
|
|
4| throwAfter = n:
|
|
| ^
|
|
5| if n > 0
|
|
|
|
… from call site
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:6:10:
|
|
5| if n > 0
|
|
6| then throwAfter (n - 1)
|
|
| ^
|
|
7| else throw "Uh oh!";
|
|
|
|
… while calling 'throwAfter'
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
|
|
3| let
|
|
4| throwAfter = n:
|
|
| ^
|
|
5| if n > 0
|
|
|
|
… from call site
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:6:10:
|
|
5| if n > 0
|
|
6| then throwAfter (n - 1)
|
|
| ^
|
|
7| else throw "Uh oh!";
|
|
|
|
… while calling 'throwAfter'
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:4:16:
|
|
3| let
|
|
4| throwAfter = n:
|
|
| ^
|
|
5| if n > 0
|
|
|
|
… caused by explicit throw
|
|
at /pwd/lang/eval-fail-duplicate-traces.nix:7:10:
|
|
6| then throwAfter (n - 1)
|
|
7| else throw "Uh oh!";
|
|
| ^
|
|
8| in
|
|
|
|
error: Uh oh!
|