- Added some info to error message from MathParser.

- Cosmetic changes.
This commit is contained in:
spx
2011-08-29 21:57:36 +00:00
parent a1f0c4fd19
commit 614eef6c3b
3 changed files with 23 additions and 10 deletions

View File

@ -82,7 +82,12 @@ bool CMeasureCalc::Update()
char* errMsg = MathParser_Parse(m_Parser, ConvertToAscii(m_Formula.c_str()).c_str(), &m_Value);
if (errMsg != NULL)
{
Log(LOG_ERROR, ConvertToWide(errMsg).c_str());
std::wstring error = L"Calc: ";
error += ConvertToWide(errMsg);
error += L" in measure [";
error += m_Name;
error += L"].";
Log(LOG_ERROR, error.c_str());
}
return PostUpdate();