Page MenuHomePhabricator

D18152.diff
No OneTemporary

D18152.diff

diff --git a/src/applications/search/engine/PhabricatorProfileMenuEngine.php b/src/applications/search/engine/PhabricatorProfileMenuEngine.php
--- a/src/applications/search/engine/PhabricatorProfileMenuEngine.php
+++ b/src/applications/search/engine/PhabricatorProfileMenuEngine.php
@@ -238,7 +238,14 @@
case 'view':
$navigation->selectFilter($selected_item->getDefaultMenuItemKey());
- $content = $this->buildItemViewContent($selected_item);
+ try {
+ $content = $this->buildItemViewContent($selected_item);
+ } catch (Exception $ex) {
+ $content = id(new PHUIInfoView())
+ ->setTitle(pht('Unable to Render Dashboard'))
+ ->setErrors(array($ex->getMessage()));
+ }
+
$crumbs->addTextCrumb($selected_item->getDisplayName());
if (!$content) {
return new Aphront404Response();

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 3, 8:41 AM (16 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8340815
Default Alt Text
D18152.diff (891 B)

Event Timeline