aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-23 11:42:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-23 11:42:33 +0200
commit198fa786a11d8ccbbb3d9ef5a3d5de4fcf9e89ef (patch)
tree1dcdfc1bc1c4f45fcb507d322611b4882268801c
parent1359c2c19a06e3e8b4d59b4e8d1378324322b428 (diff)
Add some more instrumentation
-rw-r--r--src/libstore/build/local-derivation-goal.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index de4c95e8e..789a2ae65 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -938,7 +938,10 @@ void LocalDerivationGoal::startBuilder()
try {
return readLine(builderOut.readSide.get());
} catch (Error & e) {
- e.addTrace({}, "while waiting for the build environment to initialize (previous messages: %s)",
+ auto status = pid.wait();
+ e.addTrace({}, "while waiting for the build environment for '%s' to initialize (%s, previous messages: %s)",
+ worker.store.printStorePath(drvPath),
+ statusToString(status),
concatStringsSep("|", msgs));
throw e;
}