NOISSUE add some logging to profile fetching failures

This commit is contained in:
Petr Mrázek 2022-01-16 11:43:19 +01:00 committed by dada513
parent 019c77f9f7
commit 70c04745ee
No known key found for this signature in database
GPG Key ID: 403448C14FA4B33E

View File

@ -56,6 +56,11 @@ void MinecraftProfileStep::onRequestDone(
return; return;
} }
if (error != QNetworkReply::NoError) { if (error != QNetworkReply::NoError) {
qWarning() << "Error getting profile:";
qWarning() << " HTTP Status: " << requestor->httpStatus_;
qWarning() << " Internal error no.: " << error;
qWarning() << " Error string: " << requestor->errorString_;
emit finished( emit finished(
AccountTaskState::STATE_FAILED_SOFT, AccountTaskState::STATE_FAILED_SOFT,
tr("Minecraft Java profile acquisition failed.") tr("Minecraft Java profile acquisition failed.")