aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/derivation-goal.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-02-05 15:57:33 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-02-05 15:57:33 +0100
commit480426a364f09e7992230b32f2941a09fb52d729 (patch)
tree6d8dba2ec6624b8bbf4108a43599b1531d3a694f /src/libstore/build/derivation-goal.cc
parentd7c27f21ab1715857e9f275f1a231bbf6ceb96a9 (diff)
Add more instrumentation for #4270
Diffstat (limited to 'src/libstore/build/derivation-goal.cc')
-rw-r--r--src/libstore/build/derivation-goal.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index 190adf31c..eeaec4f2c 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -1784,12 +1784,14 @@ void DerivationGoal::startBuilder()
worker.childStarted(shared_from_this(), {builderOut.readSide.get()}, true, true);
/* Check if setting up the build environment failed. */
+ std::vector<std::string> msgs;
while (true) {
string msg = [&]() {
try {
return readLine(builderOut.readSide.get());
} catch (Error & e) {
- e.addTrace({}, "while reading the response of setting up the build environment");
+ e.addTrace({}, "while waiting for the build environment to initialize (previous messages: %s)",
+ concatStringsSep("|", msgs));
throw e;
}
}();
@@ -1801,6 +1803,7 @@ void DerivationGoal::startBuilder()
throw ex;
}
debug("sandbox setup: " + msg);
+ msgs.push_back(std::move(msg));
}
}