* @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. */
| 1208 | * and we try to reproduce it for other plugins. |
| 1209 | */ |
| 1210 | static 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) |
no test coverage detected