MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / getFormattedErrorMessages

Method getFormattedErrorMessages

vrclient_x64/jsoncpp.cpp:1024–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022}
1023
1024std::string Reader::getFormattedErrorMessages() const {
1025 std::string formattedMessage;
1026 for (Errors::const_iterator itError = errors_.begin();
1027 itError != errors_.end();
1028 ++itError) {
1029 const ErrorInfo& error = *itError;
1030 formattedMessage +=
1031 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1032 formattedMessage += getLocationSnippet(error.token_.start_) + "\n";
1033 formattedMessage += " " + error.message_ + "\n";
1034 if (error.extra_)
1035 formattedMessage +=
1036 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1037 }
1038 return formattedMessage;
1039}
1040
1041std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1042 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected