12 lines
307 B
C++
12 lines
307 B
C++
#include <mbgl/util/rapidjson.hpp>
|
|
#include <mbgl/util/string.hpp>
|
|
|
|
namespace mbgl {
|
|
|
|
std::string formatJSONParseError(const JSDocument& doc) {
|
|
return std::string{rapidjson::GetParseError_En(doc.GetParseError())} + " at offset " +
|
|
util::toString(doc.GetErrorOffset());
|
|
}
|
|
|
|
} // namespace mbgl
|