mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Added some info to error message from MathParser.
- Cosmetic changes.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user