* Add some debug output to print the derivation name once it's known.
This makes it easier to pinpoint the source of a crash.
This commit is contained in:
parent
126c7317bc
commit
18047d4625
1 changed files with 4 additions and 1 deletions
|
@ -305,7 +305,10 @@ static void prim_derivationStrict(EvalState & state, Value * * args, Value & v)
|
||||||
drv.env[key] = s;
|
drv.env[key] = s;
|
||||||
if (key == "builder") drv.builder = s;
|
if (key == "builder") drv.builder = s;
|
||||||
else if (i->name == state.sSystem) drv.platform = s;
|
else if (i->name == state.sSystem) drv.platform = s;
|
||||||
else if (i->name == state.sName) drvName = s;
|
else if (i->name == state.sName) {
|
||||||
|
drvName = s;
|
||||||
|
printMsg(lvlVomit, format("derivation name is `%1%'") % drvName);
|
||||||
|
}
|
||||||
else if (key == "outputHash") outputHash = s;
|
else if (key == "outputHash") outputHash = s;
|
||||||
else if (key == "outputHashAlgo") outputHashAlgo = s;
|
else if (key == "outputHashAlgo") outputHashAlgo = s;
|
||||||
else if (key == "outputHashMode") {
|
else if (key == "outputHashMode") {
|
||||||
|
|
Loading…
Reference in a new issue