MCPcopy Create free account
hub / github.com/WinMerge/winmerge / ShowPluginErrorMessage

Function ShowPluginErrorMessage

Src/Plugins.cpp:1210–1216  ·  view source on GitHub ↗

* @brief Display a message box with the plugin name and the error message * * @note Use MessageBox instead of AfxMessageBox so we can set the caption. * VB/VBS plugins has an internal error handler, and a message box with caption, * and we try to reproduce it for other plugins. */

Source from the content-addressed store, hash-verified

1208 * and we try to reproduce it for other plugins.
1209 */
1210static void ShowPluginErrorMessage(IDispatch *piScript, tchar_t* description)
1211{
1212 PluginInfo * pInfo = CAllThreadsScripts::GetActiveSet()->GetPluginInfo(piScript);
1213 assert(pInfo != nullptr);
1214 assert(description != nullptr);
1215 AppErrorMessageBox(strutils::format(_T("%s: %s"), pInfo->m_name, description));
1216}
1217
1218/**
1219 * @brief safe invoke helper (by ordinal)

Callers 2

safeInvokeAFunction · 0.85
safeInvokeWFunction · 0.85

Calls 4

assertClass · 0.85
GetPluginInfoMethod · 0.80
AppErrorMessageBoxFunction · 0.70
formatFunction · 0.50

Tested by

no test coverage detected