mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Proper error messages for readers in case reading fails
This commit is contained in:
committed by
Roland Winklmeier
parent
97e04f8360
commit
853caacddf
@@ -156,8 +156,11 @@ namespace BlackCore
|
||||
this->setUpdateTimestamp(updateTimestamp); // thread safe update
|
||||
emit this->dataRead(bookedStations);
|
||||
} // node
|
||||
} else {
|
||||
// with errors
|
||||
}
|
||||
else
|
||||
{
|
||||
// network error
|
||||
CLogMessage(this).warning("Reading bookings failed %1 %2") << nwReply->errorString() << nwReply->url().toString();
|
||||
nwReply->abort();
|
||||
}
|
||||
} // method
|
||||
|
||||
@@ -360,9 +360,9 @@ namespace BlackCore
|
||||
else
|
||||
{
|
||||
// network error
|
||||
CLogMessage(this).warning("Reading VATSIM data file failed %1 %2") << nwReply->errorString() << nwReply->url().toString();
|
||||
nwReply->abort();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const QMap<QString, QString> CVatsimDataFileReader::clientPartsToMap(const QString ¤tLine, const QStringList &clientSectionAttributes)
|
||||
|
||||
Reference in New Issue
Block a user