MeasurePlugin: Log error code when loading plugin fails

This commit is contained in:
Birunthan Mohanathas 2014-06-01 15:10:41 +03:00
parent cd01247250
commit 4ad05ffdea

View File

@ -141,7 +141,9 @@ void MeasurePlugin::ReadOptions(ConfigParser& parser, const WCHAR* section)
}
if (!m_Plugin)
{
LogErrorF(this, L"Plugin: \"%s\" not found", pluginName.c_str());
LogErrorF(
this, L"Plugin: Unable to load \"%s\" (error %ld)",
pluginName.c_str(), GetLastError());
return;
}
}