Updater: Log parsing issues in autoupdatLog parsing issues in autoupdatee

This commit is contained in:
Hannah von Reth 2019-08-14 11:52:44 +02:00 committed by Camila (Rebase PR Action)
parent 9a375211d7
commit 1aca005267

View file

@ -89,6 +89,9 @@ UpdateInfo UpdateInfo::parseString(const QString &xml, bool *ok)
QDomDocument doc;
if (!doc.setContent(xml, false, &errorMsg, &errorLine, &errorCol)) {
qCCritical(lcUpdater) << errorMsg << " at " << errorLine << "," << errorCol;
qCCritical(lcUpdater()) << "->" << xml.splitRef("\n")[errorLine] << "<-\n"
<< QStringLiteral(" ").repeated(2 + errorCol - 1) << "^\n"
<< "->" << xml << "<-";
if (ok)
*ok = false;
return UpdateInfo();