forked from qt-creator/qt-creator
QtSupport/Example list parser: Improve error message
Output line, column and message. Change-Id: I1fa0b3da6b20b27ce3e2f66442751ab31e21904b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -488,8 +488,11 @@ void ExamplesListModel::updateExamples()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reader.hasError() && debugExamples())
|
if (reader.hasError() && debugExamples()) {
|
||||||
qWarning() << QString::fromLatin1("ERROR: Could not parse file as XML document (%1)").arg(exampleSource);
|
qWarning().noquote().nospace() << "ERROR: Could not parse file as XML document ("
|
||||||
|
<< exampleSource << "):" << reader.lineNumber() << ':' << reader.columnNumber()
|
||||||
|
<< ": " << reader.errorString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
endResetModel();
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user