mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
* New primop "throw <string>" to throw an error. This is like abort,
only thrown errors are caught by the top-level derivation evaluation in nix-env -qa / -i.
This commit is contained in:
parent
0a8eeea9d8
commit
5f2492eaec
3 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,7 @@ namespace nix {
|
|||
|
||||
MakeError(EvalError, Error)
|
||||
MakeError(AssertionError, EvalError)
|
||||
MakeError(ThrownError, AssertionError)
|
||||
MakeError(Abort, EvalError)
|
||||
MakeError(TypeError, EvalError)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue