MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / getFormattedErrorMessages

Method getFormattedErrorMessages

Source/JSON/jsoncpp.cpp:947–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947std::string Reader::getFormattedErrorMessages() const {
948 std::string formattedMessage;
949 for (const auto& error : errors_) {
950 formattedMessage +=
951 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
952 formattedMessage += " " + error.message_ + "\n";
953 if (error.extra_)
954 formattedMessage +=
955 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
956 }
957 return formattedMessage;
958}
959
960// Reader
961/////////////////////////

Callers 1

parseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected