Skip to content

Commit

Permalink
add missing logs when querying webdav properties with invalid reply
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Sep 11, 2023
1 parent c6c6c61 commit 29d04f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libsync/networkjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 29d04f8

Please sign in to comment.