ToastFreeware
/
toast
/
confclerk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07f01be
)
More output on errors.
author
gregor herrmann
<gregoa@debian.org>
Fri, 6 Apr 2012 23:22:47 +0000
(23:22 +0000)
committer
gregor herrmann
<gregoa@debian.org>
Fri, 6 Apr 2012 23:22:47 +0000
(23:22 +0000)
src/sql/schedulexmlparser.cpp
patch
|
blob
|
history
diff --git
a/src/sql/schedulexmlparser.cpp
b/src/sql/schedulexmlparser.cpp
index 45009267feca63939d44fd437111d6a2f4acd0e6..5289c203bd7ecd86a1b28838f2cc7e339cdd579f 100644
(file)
--- a/
src/sql/schedulexmlparser.cpp
+++ b/
src/sql/schedulexmlparser.cpp
@@
-36,8
+36,10
@@
void ScheduleXmlParser::parseData(const QByteArray &aData, const QString& url)
{
QDomDocument document;
QString xml_error;
- if (!document.setContent (aData, false, &xml_error)) {
- error_message("Could not parse schedule: " + xml_error);
+ int xml_error_line;
+ int xml_error_column;
+ if (!document.setContent (aData, false, &xml_error, &xml_error_line, &xml_error_column)) {
+ error_message("Could not parse schedule: " + xml_error + " at line " + QString("%1").arg(xml_error_line) + " column " + QString("%1").arg(xml_error_column));
return;
}