Robustness

This commit is contained in:
Eelco Dolstra 2015-06-19 16:35:49 +02:00
parent f196967c43
commit e13477bdf2

View file

@ -656,7 +656,12 @@ void State::getQueuedBuilds(Connection & conn, std::shared_ptr<StoreAPI> store,
newRunnable.clear();
nrAdded = 0;
createBuild(build);
try {
createBuild(build);
} catch (Error & e) {
printMsg(lvlError, format("while loading build %1%: %2%") % build->id % e.what());
continue; // FIXME: retry later?
}
/* Add the new runnable build steps to runnable and wake up
the builder threads. */