| 76 | } |
| 77 | |
| 78 | void cmJSONState::AddErrorAtOffset(std::string const& errMsg, |
| 79 | std::ptrdiff_t offset) |
| 80 | { |
| 81 | if (doc.empty()) { |
| 82 | this->AddError(errMsg); |
| 83 | } else { |
| 84 | Location loc = LocateInDocument(offset); |
| 85 | this->errors.emplace_back(loc, errMsg); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | std::string cmJSONState::GetErrorMessage(bool showContext) |
| 90 | { |
no test coverage detected