summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-01-13 17:39:08 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-01-14 10:01:53 +0000
commit499115fd94a454296353231ff874c896ba627039 (patch)
tree390bb21ab161ab0a8b9879b01e9a2819e87d11a4
parent9d038362b22c33518aa7c492e39f1f3bf0f79bb6 (diff)
downloadqt-creator-499115fd94a454296353231ff874c896ba627039.tar.gz
QtSupport/Example list parser: Improve error message
Output line, column and message. Change-Id: I1fa0b3da6b20b27ce3e2f66442751ab31e21904b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 5f1c79bbb8..af27807cc0 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -488,8 +488,11 @@ void ExamplesListModel::updateExamples()
break;
}
- if (reader.hasError() && debugExamples())
- qWarning() << QString::fromLatin1("ERROR: Could not parse file as XML document (%1)").arg(exampleSource);
+ if (reader.hasError() && debugExamples()) {
+ qWarning().noquote().nospace() << "ERROR: Could not parse file as XML document ("
+ << exampleSource << "):" << reader.lineNumber() << ':' << reader.columnNumber()
+ << ": " << reader.errorString();
+ }
}
endResetModel();
}