Better debug messages for WSPR spotting issues

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6460 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2016-02-02 18:28:12 +00:00
parent 9e55d08eb6
commit dc69144396
2 changed files with 4 additions and 3 deletions

View File

@ -5016,9 +5016,10 @@ void MainWindow::uploadResponse(QString response)
{
if (response == "done") {
m_uploading=false;
} else if (response == "Upload Failed") {
m_uploading=false;
} else {
if (response.startsWith ("Upload Failed")) {
m_uploading=false;
}
qDebug () << "WSPRnet.org status:" << response;
}
}

View File

@ -85,7 +85,7 @@ void WSPRNet::networkReply(QNetworkReply *reply)
QString serverResponse = reply->readAll();
if( m_uploadType == 2) {
if (!serverResponse.contains(QRegExp("spot\\(s\\) added"))) {
emit uploadStatus("Upload Failed");
emit uploadStatus(QString {"Upload Failed: %1"}.arg (serverResponse));
urlQueue.clear();
uploadTimer->stop();
}