| 867 | } |
| 868 | |
| 869 | void JsonViewDlg::ReportError(const Result& result) |
| 870 | { |
| 871 | // Mark the error position |
| 872 | size_t start = m_pEditor->GetSelectionStart() + result.error_pos; |
| 873 | size_t end = m_pEditor->GetSelectionEnd(); |
| 874 | m_pEditor->MakeSelection(start, end); |
| 875 | |
| 876 | // Intimate user |
| 877 | std::string err = std::format("\n\nError: ({} : {})", result.error_code, result.error_str); |
| 878 | |
| 879 | ShowMessage(JSON_ERROR_TITLE, (JSON_ERR_VALIDATE + StringHelper::ToWstring(err)).c_str(), MB_OK | MB_ICONERROR); |
| 880 | } |
| 881 | |
| 882 | void JsonViewDlg::ToggleMenuItemState(bool bVisible) |
| 883 | { |
nothing calls this directly
no test coverage detected