diff options
author | regnat <rg@regnat.ovh> | 2021-02-22 16:13:09 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-02-22 16:13:09 +0100 |
commit | e2f3b2eb42a0ceca36ce00973bd2d49b1a3e6a2c (patch) | |
tree | c8ffb8d561c61b94951fa1ce1424a7d92e9a6b7e /src/libexpr/nixexpr.hh | |
parent | 574eb2be81cc599162722659dcb95f19173c98d1 (diff) |
Make missing auto-call arguments throw an eval error
The PR #4240 changed messag of the error that was thrown when an auto-called
function was missing an argument.
However this change also changed the type of the error, from `EvalError`
to a new `MissingArgumentError`. This broke hydra which was relying on
an `EvalError` being thrown.
Make `MissingArgumentError` a subclass of `EvalError` to un-break hydra.
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index cbe9a45bf..8df8055b3 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -17,7 +17,7 @@ MakeError(ThrownError, AssertionError); MakeError(Abort, EvalError); MakeError(TypeError, EvalError); MakeError(UndefinedVarError, Error); -MakeError(MissingArgumentError, Error); +MakeError(MissingArgumentError, EvalError); MakeError(RestrictedPathError, Error); |