Core: report the real error of a failed feature after a recompute

This commit is contained in:
wmayer
2023-08-01 17:47:17 +02:00
committed by Chris Hennes
parent 3d5a58b591
commit cf5e6825aa

View File

@@ -2826,8 +2826,16 @@ int Document::recompute(const std::vector<App::DocumentObject*> &objs, bool forc
FC_TIME_LOG(t,"Recompute total");
if (!d->_RecomputeLog.empty()) {
if (!testStatus(Status::IgnoreErrorOnRecompute))
Base::Console().Error("Recompute failed!\n");
if (!testStatus(Status::IgnoreErrorOnRecompute)) {
for (auto it : topoSortedObjects) {
if (it->isError()) {
const char* text = getErrorDescription(it);
if (text) {
Base::Console().Error("%s: %s\n", it->Label.getValue(), text);
}
}
}
}
}
for (auto doc : GetApplication().getDocuments()) {