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
24 lines
749 B
Plaintext
24 lines
749 B
Plaintext
error:
|
|
… while evaluating the attribute 'src.meta'
|
|
at /pwd/lang/eval-fail-select-err.nix:2:3:
|
|
1| let
|
|
2| somepkg.src = throw "invalid foo bar";
|
|
| ^
|
|
3| in somepkg.src.meta
|
|
|
|
… while evaluating 'somepkg.src' to select 'meta' on it
|
|
at /pwd/lang/eval-fail-select-err.nix:3:4:
|
|
2| somepkg.src = throw "invalid foo bar";
|
|
3| in somepkg.src.meta
|
|
| ^
|
|
4|
|
|
|
|
… caused by explicit throw
|
|
at /pwd/lang/eval-fail-select-err.nix:2:17:
|
|
1| let
|
|
2| somepkg.src = throw "invalid foo bar";
|
|
| ^
|
|
3| in somepkg.src.meta
|
|
|
|
error: invalid foo bar
|