Commit 8e6dd0ca authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent a05308e7
......@@ -672,9 +672,9 @@ static void loadFileJson(const std::string& filename, rapidjson::Document& docum
static void loadStrJson(const std::string& data, rapidjson::Document& document)
{
rapidjson::ParseResult ok = document.Parse(data.c_str());
const rapidjson::ParseResult ok = document.Parse(data.c_str());
if (!ok) {
throw Exp() << "json parse error " << ", code: " << ok.Code() << ", offset: " << ok.Offset();
throw Exp() << "json parse error " << ", code: " << ok.Code() << ", offset: " << ok.Offset() << " at " << __FILE__ << ":" << __LINE__;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment