From 4c0e3e47034545ad3e9e86dd069138bcebb8ccee Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Mar 2015 22:03:55 +0100 Subject: [PATCH] Debug tweak --- src/c/hydra-eval-jobs.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/c/hydra-eval-jobs.cc b/src/c/hydra-eval-jobs.cc index ad5b2d7a..b6d8ad38 100644 --- a/src/c/hydra-eval-jobs.cc +++ b/src/c/hydra-eval-jobs.cc @@ -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; } }