MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / OnInternalError

Method OnInternalError

src/ui/DownloadDictionariesDialog.cpp:461–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 void OnInternalError(const tstring &error_msg, const tstring &error_filename, DWORD line) override {
462 FILE *f;
463 _wfopen_s(&f, m_log_filename, L"a");
464 if (!f)
465 return;
466 auto final_msg = wstring_printf(L"Fatal error %s in file %s on line %d\n", error_msg.c_str(), error_filename.c_str(), line);
467 fwprintf(f, final_msg.c_str());
468 fclose(f);
469 }
470
471 void OnSendCommand(const nsFTP::CCommand &cmd, const nsFTP::CArg &args) override {
472 FILE *f;

Callers

nothing calls this directly

Calls 2

wstring_printfFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected