about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-05-30T11·31+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-05-30T11·31+0000
commitb1c63dc36230bfe4ac4d128f6647846a995feb40 (patch)
treeba4dcf6fb50a685b0b22c29f82429b1e904e7d46
parentc7d9397fc911997ff10192662bfdaf419167b142 (diff)
* Don't use badTerm, it gives awful error messages.
-rw-r--r--src/libexpr/get-drvs.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc
index 19778c6abeda..8e439f08bfa3 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"));