lix/doc/manual/rl-next
Qyriad 4c7165be86 distinguish between throws & errors during throw
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
2024-07-04 17:43:03 -06:00
..
.gitkeep release: release notes for 2.90.0 2024-06-15 18:46:18 -07:00
better-attrpath-errors.md trace which part of foo.bar.baz errors 2024-07-04 17:42:35 -06:00
build-dir.md Add build-dir setting, clean up default TMPDIR handling 2024-06-24 11:30:32 +03:00
distinguish-throw-errors.md distinguish between throws & errors during throw 2024-07-04 17:43:03 -06:00
fod-failure-includes-url.md store: guess the URL of failing fixed-output derivations 2024-06-27 22:44:16 -07:00
multiline-log-format.md libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
nix-copy-is-fast.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00
old-protocol-removal.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00
registry-add-shorthand-only.md Reject fully-qualified URLs in 'from' argument of nix registry add 2024-06-29 05:11:31 +00:00
reject-flake-config.md libexpr/flake: allow automatic rejection of configuration options from flakes 2024-06-30 19:28:14 +02:00
repl-complete-colon.md repl: implement tab completing :colon commands 2024-06-17 13:08:02 +00:00
sanitizers.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00