# HG changeset patch # User Atul Varma # Date 1220914793 25200 # Node ID aa3ccc022d07acd27966c618208811ba3a4066e4 # Parent a45124612e607ec0e1defc4143a6aca546bd9f73 If displaying a feed throws an unexpected exception, we just log the error and move on to the next one. diff -r a45124612e60 -r aa3ccc022d07 ambnews/content/blank.js --- 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;