From b1c63dc36230bfe4ac4d128f6647846a995feb40 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 May 2006 11:31:33 +0000 Subject: [PATCH] * Don't use badTerm, it gives awful error messages. --- src/libexpr/get-drvs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc index 19778c6ab..8e439f08b 100644 --- a/src/libexpr/get-drvs.cc +++ b/src/libexpr/get-drvs.cc @@ -80,7 +80,8 @@ static bool getDerivation(EvalState & state, Expr e, DrvInfo drv; 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); a = attrs->get(toATerm("system"));