mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
Updater: Log parsing issues in autoupdatLog parsing issues in autoupdatee
This commit is contained in:
parent
9a375211d7
commit
1aca005267
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,9 @@ UpdateInfo UpdateInfo::parseString(const QString &xml, bool *ok)
|
||||||
QDomDocument doc;
|
QDomDocument doc;
|
||||||
if (!doc.setContent(xml, false, &errorMsg, &errorLine, &errorCol)) {
|
if (!doc.setContent(xml, false, &errorMsg, &errorLine, &errorCol)) {
|
||||||
qCCritical(lcUpdater) << errorMsg << " at " << errorLine << "," << errorCol;
|
qCCritical(lcUpdater) << errorMsg << " at " << errorLine << "," << errorCol;
|
||||||
|
qCCritical(lcUpdater()) << "->" << xml.splitRef("\n")[errorLine] << "<-\n"
|
||||||
|
<< QStringLiteral(" ").repeated(2 + errorCol - 1) << "^\n"
|
||||||
|
<< "->" << xml << "<-";
|
||||||
if (ok)
|
if (ok)
|
||||||
*ok = false;
|
*ok = false;
|
||||||
return UpdateInfo();
|
return UpdateInfo();
|
||||||
|
|
Loading…
Reference in a new issue