mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +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
|
this->setUpdateTimestamp(updateTimestamp); // thread safe update
|
||||||
emit this->dataRead(bookedStations);
|
emit this->dataRead(bookedStations);
|
||||||
} // node
|
} // node
|
||||||
} else {
|
}
|
||||||
// with errors
|
else
|
||||||
|
{
|
||||||
|
// network error
|
||||||
|
CLogMessage(this).warning("Reading bookings failed %1 %2") << nwReply->errorString() << nwReply->url().toString();
|
||||||
nwReply->abort();
|
nwReply->abort();
|
||||||
}
|
}
|
||||||
} // method
|
} // method
|
||||||
|
|||||||
@@ -360,9 +360,9 @@ namespace BlackCore
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// network error
|
// network error
|
||||||
|
CLogMessage(this).warning("Reading VATSIM data file failed %1 %2") << nwReply->errorString() << nwReply->url().toString();
|
||||||
nwReply->abort();
|
nwReply->abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const QMap<QString, QString> CVatsimDataFileReader::clientPartsToMap(const QString ¤tLine, const QStringList &clientSectionAttributes)
|
const QMap<QString, QString> CVatsimDataFileReader::clientPartsToMap(const QString ¤tLine, const QStringList &clientSectionAttributes)
|
||||||
|
|||||||
Reference in New Issue
Block a user