Fix bad utils return value on error. Build network errors with a message and not just an error code.

This commit is contained in:
2021-07-29 21:14:48 +02:00
parent b5eb0efd31
commit bdaceba2e0
3 changed files with 10 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ std::string DRMProcessorClientImpl::sendHTTPRequest(const std::string& URL, cons
}
if (reply->error() != QNetworkReply::NoError)
EXCEPTION(gourou::CLIENT_NETWORK_ERROR, "Error " << reply->error());
EXCEPTION(gourou::CLIENT_NETWORK_ERROR, "Error " << reply->errorString().toStdString());
if (gourou::logLevel >= gourou::DEBUG)
{