Page MenuHomePhabricator

D8488.diff
No OneTemporary

D8488.diff

diff --git a/src/applications/feed/builder/PhabricatorFeedBuilder.php b/src/applications/feed/builder/PhabricatorFeedBuilder.php
--- a/src/applications/feed/builder/PhabricatorFeedBuilder.php
+++ b/src/applications/feed/builder/PhabricatorFeedBuilder.php
@@ -57,8 +57,21 @@
$null_view->appendChild($header);
}
- $view = $story->renderView();
- $view->setUser($user);
+ try {
+ $view = $story->renderView();
+ $view->setUser($user);
+ $view = $view->render();
+ } catch (Exception $ex) {
+ // If rendering failed for any reason, don't fail the entire feed,
+ // just this one story.
+ $view = id(new PHUIFeedStoryView())
+ ->setUser($user)
+ ->setChronologicalKey($story->getChronologicalKey())
+ ->setEpoch($story->getEpoch())
+ ->setTitle(
+ pht('Feed Story Failed to Render (%s)', get_class($story)))
+ ->appendChild(pht('%s: %s', get_class($ex), $ex->getMessage()));
+ }
$null_view->appendChild($view);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 5:31 PM (12 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921690
Default Alt Text
D8488.diff (1 KB)

Event Timeline