Mercurial > ambnews-firefox
changeset 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 | a45124612e60 |
children | 38982c6421fa |
files | ambnews/content/blank.js |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
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;