diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 7ea4fccec6..4d1fa65c96 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -3536,8 +3536,8 @@ int Document::recompute(const std::vector &objs, bool forc FC_TIME_LOG(t,"Recompute total"); - if(d->_RecomputeLog.size()) - Base::Console().Error("Recompute failed! Please check report view.\n"); + if (d->_RecomputeLog.size()) + Base::Console().Log("Recompute failed! Please check report view.\n"); return objectCount; } @@ -3732,7 +3732,7 @@ int Document::_recomputeFeature(DocumentObject* Feat) } catch(Base::AbortException &e){ e.ReportException(); - FC_ERR("Failed to recompute " << Feat->getFullName() << ": " << e.what()); + FC_LOG("Failed to recompute " << Feat->getFullName() << ": " << e.what()); d->addRecomputeLog("User abort",Feat); return -1; } @@ -3743,7 +3743,7 @@ int Document::_recomputeFeature(DocumentObject* Feat) } catch (Base::Exception &e) { e.ReportException(); - FC_ERR("Failed to recompute " << Feat->getFullName() << ": " << e.what()); + FC_LOG("Failed to recompute " << Feat->getFullName() << ": " << e.what()); d->addRecomputeLog(e.what(),Feat); return 1; } @@ -3760,12 +3760,13 @@ int Document::_recomputeFeature(DocumentObject* Feat) } #endif - if(returnCode == DocumentObject::StdReturn) { + if (returnCode == DocumentObject::StdReturn) { Feat->resetError(); - }else{ + } + else { returnCode->Which = Feat; d->addRecomputeLog(returnCode); - FC_ERR("Failed to recompute " << Feat->getFullName() << ": " << returnCode->Why); + FC_LOG("Failed to recompute " << Feat->getFullName() << ": " << returnCode->Why); return 1; } return 0;