1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-26 16:34:23 +02:00

Improved error reporting

This commit is contained in:
2023-12-31 01:12:46 +01:00
parent e13d6dfc4b
commit 2541797e7d
4 changed files with 8 additions and 4 deletions

View File

@ -366,8 +366,10 @@ bool OruxMap::readXML(const QString &path, const QString &dir)
{
QFile file(path);
if (!file.open(QFile::ReadOnly | QFile::Text))
if (!file.open(QFile::ReadOnly | QFile::Text)) {
_errorString = file.errorString();
return false;
}
QXmlStreamReader reader(&file);
if (reader.readNextStartElement()) {