Permalink
Browse files

news-sites.xml had a typo that was preventing it from loading.

Add some debug for if it fails to parse news-sites.xml.


git-svn-id: http://svn.mythtv.org/svn/trunk@5573 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent a9560be commit cda72f6bac31a510821bf649b6a13e02ed5623ba Isaac Richards committed Feb 11, 2005
Showing with 11 additions and 2 deletions.
  1. +10 −1 mythplugins/mythnews/mythnews/mythnewsconfig.cpp
  2. +1 −1 mythplugins/mythnews/mythnews/news-sites.xml
@@ -150,9 +150,18 @@ void MythNewsConfig::populateSites()
return;
}
+ QString errorMsg;
+ int errorLine = 0;
+ int errorColumn = 0;
+
QDomDocument domDoc;
- if (!domDoc.setContent(&xmlFile)) {
+
+ if (!domDoc.setContent(&xmlFile, false, &errorMsg, &errorLine, &errorColumn))
+ {
cerr << "MythNews: Error in reading content of news-sites.xml" << endl;
+ VERBOSE(VB_IMPORTANT, QString("MythNews: Error, parsing %1\n"
+ "at line: %2 column: %3 msg: %4").
+ arg(filename).arg(errorLine).arg(errorColumn).arg(errorMsg));
return;
}
@@ -1062,7 +1062,7 @@
<item>
<title>EFF Monthly Events Calendar</title>
- <url>http://www.eff.org/calendar/rss/rss.php?cal=events&rssview=month</url>
+ <url>http://www.eff.org/calendar/rss/rss.php?cal=events&amp;rssview=month</url>
<ico>http://www.eff.org/favicon.ico</ico>
</item>

0 comments on commit cda72f6

Please sign in to comment.