Updater: Log parsing issues in autoupdatLog parsing issues in autoupdatee
authorHannah von Reth <hannah.vonreth@owncloud.com>
Wed, 14 Aug 2019 09:52:44 +0000 (11:52 +0200)
committerCamila (Rebase PR Action) <hello@camila.codes>
Tue, 24 Nov 2020 18:22:33 +0000 (18:22 +0000)
src/gui/updater/updateinfo.cpp

index ad32c6c9d197fb0155569277f670454da6c9e0ef..3b2d5b602fc4a3cff2d7cb8ab6b30c6f38f98b2d 100644 (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();