Mercurial > ambnews-firefox
diff ambnews/content/blank.js @ 20:aa3ccc022d07
If displaying a feed throws an unexpected exception, we just log the error and move on to the next one.
| author | Atul Varma <varmaa@toolness.com> |
|---|---|
| date | Mon, 08 Sep 2008 15:59:53 -0700 |
| parents | f259d52d361e |
| children |
line wrap: on
line diff
--- a/ambnews/content/blank.js Sat Aug 23 12:44:53 2008 -0700 +++ b/ambnews/content/blank.js Mon Sep 08 15:59:53 2008 -0700 @@ -96,8 +96,17 @@ } } + function displayFeed(feed) { + try { + tryToDisplayFeed(feed); + } catch (e) { + Components.utils.reportError(e); + window.setTimeout(getNextFeed, 10); + } + } + // This function displays the given feed. - function displayFeed(feed) { + function tryToDisplayFeed(feed) { if (feed && feed.title.text in shownFeeds) // We've already shown this feed, skip to the next one. feed = null;
