Don't scare users with critical parser log messages

This commit is contained in:
Hannah von Reth 2020-10-02 14:25:19 +02:00 committed by Camila (Rebase PR Action)
parent d30cd0f0fd
commit 038644f378

View file

@ -88,7 +88,7 @@ UpdateInfo UpdateInfo::parseString(const QString &xml, bool *ok)
int errorLine = 0, errorCol = 0; int errorLine = 0, errorCol = 0;
QDomDocument doc; QDomDocument doc;
if (!doc.setContent(xml, false, &errorMsg, &errorLine, &errorCol)) { if (!doc.setContent(xml, false, &errorMsg, &errorLine, &errorCol)) {
qCCritical(lcUpdater).noquote().nospace() << errorMsg << " at " << errorLine << "," << errorCol qCWarning(lcUpdater).noquote().nospace() << errorMsg << " at " << errorLine << "," << errorCol
<< "\n" << xml.splitRef("\n").value(errorLine-1) << "\n" << "\n" << xml.splitRef("\n").value(errorLine-1) << "\n"
<< QString(" ").repeated(errorCol - 1) << "^\n" << QString(" ").repeated(errorCol - 1) << "^\n"
<< "->" << xml << "<-"; << "->" << xml << "<-";