Debug tweak

This commit is contained in:
Eelco Dolstra 2015-03-18 22:03:55 +01:00
parent ad2b7646ac
commit 4c0e3e4703

View file

@ -114,6 +114,7 @@ static void findJobsWrapped(EvalState & state, JSONObject & top,
if (drv.system == "unknown")
throw EvalError("derivation must have a system attribute");
{
top.attr(attrPath);
JSONObject res(top.str);
res.attr("nixName", drv.name);
@ -156,6 +157,9 @@ static void findJobsWrapped(EvalState & state, JSONObject & top,
JSONObject res2(res.str);
for (auto & j : outputs)
res2.attr(j.first, j.second);
}
top.str << std::endl;
}
else {
@ -193,7 +197,7 @@ static void findJobs(EvalState & state, JSONObject & top,
top.attr(attrPath);
JSONObject res(top.str);
res.attr("error", e.msg());
top.str << "\n";
top.str << std::endl;
}
}