Tweak debug output

This commit is contained in:
Eelco Dolstra 2015-03-23 12:59:41 +01:00
parent 479632efa3
commit 3b5e84cc73

View file

@ -194,9 +194,11 @@ static void findJobs(EvalState & state, JSONObject & top,
try {
findJobsWrapped(state, top, argsLeft, v, attrPath);
} catch (EvalError & e) {
{
top.attr(attrPath);
JSONObject res(top.str);
res.attr("error", e.msg());
}
top.str << std::endl;
}
}