* Print a more useful error message in case of an invalid derivation

binding.
This commit is contained in:
Eelco Dolstra 2004-04-02 10:49:37 +00:00
parent c4ac2a164a
commit a520b1cbc3

View file

@ -181,7 +181,12 @@ Expr primDerivation(EvalState & state, Expr args)
startNest(nest, lvlVomit, format("processing attribute `%1%'") % key);
Strings ss;
processBinding(state, value, ne, ss);
try {
processBinding(state, value, ne, ss);
} catch (Error & e) {
throw Error(format("while processing derivation binding `%1%': %2%")
% key % e.msg());
}
/* The `args' attribute is special: it supplies the
command-line arguments to the builder. */