Changeset 9723 in ntrip for trunk/BNC/src
- Timestamp:
- May 19, 2022, 12:30:16 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryv2.cpp
r9722 r9723 74 74 if (_reply && _reply->error() != QNetworkReply::NoError) { 75 75 _status = error; 76 if (!_reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray().isEmpty()) { 76 77 emit newMessage(_url.path().toLatin1().replace(0,1,"") + 77 78 ": NetQueryV2: server replied: " + 78 79 _reply->attribute(QNetworkRequest::HttpReasonPhraseAttribute).toByteArray(), 79 80 true); 81 } else { 82 emit newMessage(_url.path().toLatin1().replace(0,1,"") + 83 ": NetQueryV2: server replied: " + 84 _reply->errorString().toLatin1(), 85 true); 86 } 80 87 } 81 88 else { … … 189 196 _eventLoop->exec(); 190 197 } 198 if (!_reply) { 199 return; 200 } 191 201 192 202 // Check NTRIPv2 error code … … 196 206 } 197 207 208 198 209 // Append Data 199 210 // ----------- … … 207 218 void bncNetQueryV2::slotSslErrors(QList<QSslError> errors) { 208 219 209 QString msg = "SSL Error \n";220 QString msg = "SSL Error: "; 210 221 QSslCertificate cert = _reply->sslConfiguration().peerCertificate(); 211 222 if (!cert.isNull() && … … 224 235 } 225 236 226 QListIterator<QSslError> it(errors); std::cout << "errors.size(): " << errors.size() << std::endl;237 QListIterator<QSslError> it(errors); 227 238 while (it.hasNext()) { 228 239 const QSslError& err = it.next(); 229 msg += "\n" +err.errorString();240 msg += err.errorString(); 230 241 } 231 242 BNC_CORE->slotMessage(msg.toLatin1(), true); … … 233 244 if (_sslIgnoreErrors) { 234 245 _reply->ignoreSslErrors(); 246 BNC_CORE->slotMessage("BNC ignores SSL errors as configured", true); 235 247 } 236 248 else { 237 249 stop(); 238 250 } 239 } 251 return; 252 }
Note:
See TracChangeset
for help on using the changeset viewer.