Proper error messages for readers in case reading fails

This commit is contained in:
Klaus Basan
2014-11-20 17:57:25 +01:00
committed by Roland Winklmeier
parent 97e04f8360
commit 853caacddf
2 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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 &currentLine, const QStringList &clientSectionAttributes)