forked from lix-project/lix
Add more instrumentation for #4270
This commit is contained in:
parent
d7c27f21ab
commit
480426a364
|
@ -1784,12 +1784,14 @@ void DerivationGoal::startBuilder()
|
||||||
worker.childStarted(shared_from_this(), {builderOut.readSide.get()}, true, true);
|
worker.childStarted(shared_from_this(), {builderOut.readSide.get()}, true, true);
|
||||||
|
|
||||||
/* Check if setting up the build environment failed. */
|
/* Check if setting up the build environment failed. */
|
||||||
|
std::vector<std::string> msgs;
|
||||||
while (true) {
|
while (true) {
|
||||||
string msg = [&]() {
|
string msg = [&]() {
|
||||||
try {
|
try {
|
||||||
return readLine(builderOut.readSide.get());
|
return readLine(builderOut.readSide.get());
|
||||||
} catch (Error & e) {
|
} 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;
|
throw e;
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
@ -1801,6 +1803,7 @@ void DerivationGoal::startBuilder()
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
debug("sandbox setup: " + msg);
|
debug("sandbox setup: " + msg);
|
||||||
|
msgs.push_back(std::move(msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue