MCPcopy Create free account
hub / github.com/cuberite/cuberite / getFormatedErrorMessages

Method getFormatedErrorMessages

lib/jsoncpp/src/lib_json/json_reader.cpp:857–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857std::string
858Reader::getFormatedErrorMessages() const
859{
860 std::string formattedMessage;
861 for ( Errors::const_iterator itError = errors_.begin();
862 itError != errors_.end();
863 ++itError )
864 {
865 const ErrorInfo &error = *itError;
866 formattedMessage += "* " + getLocationLineAndColumn( error.token_.start_ ) + "\n";
867 formattedMessage += " " + error.message_ + "\n";
868 if ( error.extra_ )
869 formattedMessage += "See " + getLocationLineAndColumn( error.extra_ ) + " for detail.\n";
870 }
871 return formattedMessage;
872}
873
874#define JSON_ASSERT( condition ) assert( condition );
875std::istream& operator>>( std::istream &sin, Value &root )

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected