Skip to content

Commit

Permalink
Make missing auto-call arguments throw an eval error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thufschmitt committed Feb 22, 2021
1 parent 574eb2b commit e2f3b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/nixexpr.hh
Expand Up @@ -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);


Expand Down

0 comments on commit e2f3b2e

Please sign in to comment.