From 29d04f83a38dcf3d164902f929bafc1778003d84 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 11 Sep 2023 11:26:11 +0200 Subject: [PATCH] add missing logs when querying webdav properties with invalid reply Signed-off-by: Matthieu Gallien --- src/libsync/networkjobs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index cb6189cadc6bd..be8f4b383b8cc 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -405,10 +405,12 @@ bool LsColJob::finished() QString expectedPath = reply()->request().url().path(); // something like "/owncloud/remote.php/dav/folder" if (!parser.parse(reply()->readAll(), &_folderInfos, expectedPath)) { // XML parse error + qCWarning(lcLsColJob()) << "xml parser error for" << path() << expectedPath; emit finishedWithError(reply()); } } else { // wrong content type, wrong HTTP code or any other network error + qCWarning(lcLsColJob()) << "error with the network request for" << path() << httpCode << contentType; emit finishedWithError(reply()); }