forked from lix-project/lix
* Don't use badTerm, it gives awful error messages.
This commit is contained in:
parent
c7d9397fc9
commit
b1c63dc362
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ static bool getDerivation(EvalState & state, Expr e,
|
||||||
DrvInfo drv;
|
DrvInfo drv;
|
||||||
|
|
||||||
a = attrs->get(toATerm("name"));
|
a = attrs->get(toATerm("name"));
|
||||||
if (!a) throw badTerm("derivation name missing", e);
|
/* !!! We really would like to have a decent back trace here. */
|
||||||
|
if (!a) throw Error("derivation name missing");
|
||||||
drv.name = evalString(state, a);
|
drv.name = evalString(state, a);
|
||||||
|
|
||||||
a = attrs->get(toATerm("system"));
|
a = attrs->get(toATerm("system"));
|
||||||
|
|
Loading…
Reference in a new issue