* Print a more useful error message in case of an invalid derivation
binding.
This commit is contained in:
parent
c4ac2a164a
commit
a520b1cbc3
|
@ -181,7 +181,12 @@ Expr primDerivation(EvalState & state, Expr args)
|
||||||
startNest(nest, lvlVomit, format("processing attribute `%1%'") % key);
|
startNest(nest, lvlVomit, format("processing attribute `%1%'") % key);
|
||||||
|
|
||||||
Strings ss;
|
Strings ss;
|
||||||
|
try {
|
||||||
processBinding(state, value, ne, ss);
|
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
|
/* The `args' attribute is special: it supplies the
|
||||||
command-line arguments to the builder. */
|
command-line arguments to the builder. */
|
||||||
|
|
Loading…
Reference in a new issue