StelJsonParser.cpp   StelJsonParser.cpp 
skipping to change at line 48 skipping to change at line 48
QByteArray data = input->readAll(); QByteArray data = input->readAll();
return parse(data); return parse(data);
} }
QVariant StelJsonParser::parse(const QByteArray& aar) QVariant StelJsonParser::parse(const QByteArray& aar)
{ {
QJsonParseError error; QJsonParseError error;
QJsonDocument doc = QJsonDocument::fromJson(aar, &error); QJsonDocument doc = QJsonDocument::fromJson(aar, &error);
if (error.error != QJsonParseError::NoError) if (error.error != QJsonParseError::NoError)
{ {
throw std::runtime_error(error.errorString().toLatin1().cons qDebug() << "ERROR parsing JSON data:" << error.errorString(
tData()); ).toLatin1().constData();
return QVariant();
//throw std::runtime_error(error.errorString().toLatin1().co
nstData());
} }
return doc.toVariant(); return doc.toVariant();
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/