Skip to content

Commit

Permalink
fix: stop logging "invalid HTML content" for HTTP errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Apr 23, 2023
1 parent 947a529 commit 7670db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/src/downloader/file-downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void FileDownloader::replyFinished()
m_file.remove();
if (failedLastWrite || m_writeError) {
emit writeError();
} else if (invalidHtml) {
} else if (invalidHtml && error == NetworkReply::NetworkError::NoError) {
log(QString("Invalid HTML content returned for url '%1'").arg(m_reply->url().toString()), Logger::Info);
emit networkError(NetworkReply::NetworkError::ContentNotFoundError, "Invalid HTML content returned");
} else if (emptyFile && error == NetworkReply::NetworkError::NoError) {
Expand Down

0 comments on commit 7670db6

Please sign in to comment.