Improve debug info

This commit is contained in:
Abdullah Tahiri
2018-12-18 17:40:00 +01:00
committed by Yorik van Havre
parent 2830f107ae
commit 47443dfd87

View File

@@ -2527,7 +2527,7 @@ bool Document::_recomputeFeature(DocumentObject* Feat)
returnCode->Which = Feat;
_RecomputeLog.push_back(returnCode);
#ifdef FC_DEBUG
Base::Console().Error("%s\n",returnCode->Why.c_str());
Base::Console().Error("Error in feature: %s\n%s\n",Feat->getNameInDocument(),returnCode->Why.c_str());
#endif
Feat->setError();
return true;
@@ -2576,7 +2576,7 @@ bool Document::_recomputeFeature(DocumentObject* Feat)
returnCode->Which = Feat;
_RecomputeLog.push_back(returnCode);
#ifdef FC_DEBUG
Base::Console().Error("%s\n",returnCode->Why.c_str());
Base::Console().Error("Error in feature: %s\n%s\n",Feat->getNameInDocument(),returnCode->Why.c_str());
#endif
Feat->setError();
}