1
0
Fork 0
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:
Eelco Dolstra 2007-04-16 15:03:19 +00:00
parent 0a8eeea9d8
commit 5f2492eaec
3 changed files with 13 additions and 0 deletions

View file

@ -12,6 +12,7 @@ namespace nix {
MakeError(EvalError, Error)
MakeError(AssertionError, EvalError)
MakeError(ThrownError, AssertionError)
MakeError(Abort, EvalError)
MakeError(TypeError, EvalError)