mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 12:36:01 +01:00
* Some refactoring of the exception handling code so that we can catch
Nix expression assertion failures.
This commit is contained in:
parent
fa72ae1e9c
commit
9088dee9e2
5 changed files with 45 additions and 22 deletions
|
|
@ -37,6 +37,10 @@ struct EvalState
|
|||
};
|
||||
|
||||
|
||||
MakeError(EvalError, Error)
|
||||
MakeError(AssertionError, EvalError)
|
||||
|
||||
|
||||
/* Evaluate an expression to normal form. */
|
||||
Expr evalExpr(EvalState & state, Expr e);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue