| 42 | } |
| 43 | |
| 44 | String FormatFilterErrorSummary(const FileFilterErrorInfo& fei) |
| 45 | { |
| 46 | if (fei.errorCode == FILTER_ERROR_NO_ERROR) |
| 47 | return _T(""); |
| 48 | String msg; |
| 49 | msg = GetFilterErrorMessage(fei.errorCode); |
| 50 | if (fei.errorPosition >= 0) |
| 51 | msg += _T(" ") + _("at position") + _T(" ") + strutils::to_str(fei.errorPosition + 1); |
| 52 | msg += _T(": ") + ucr::toTString(fei.srcText); |
| 53 | if (!fei.context.empty()) |
| 54 | msg += _T(" (") + fei.context + _T(")"); |
| 55 | return msg; |
| 56 | } |
| 57 | |
| 58 | String FormatFilterErrorSummary(const FilterExpression& fe) |
| 59 | { |
no test coverage detected