From 42a514ec7999e76e484c6d32660761fce8ab325f Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Fri, 7 Dec 2012 16:12:16 -0800 Subject: [PATCH] make repository tool fail a little less hard if daemons don't interact nicely Summary: we were catching a specific exception; just catch all exceptions Test Plan: viewed repository tool home page Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2155 Differential Revision: https://secure.phabricator.com/D4118 --- .../repository/controller/PhabricatorRepositoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/repository/controller/PhabricatorRepositoryController.php b/src/applications/repository/controller/PhabricatorRepositoryController.php index 6d29508364..918fbbced2 100644 --- a/src/applications/repository/controller/PhabricatorRepositoryController.php +++ b/src/applications/repository/controller/PhabricatorRepositoryController.php @@ -55,7 +55,7 @@ abstract class PhabricatorRepositoryController extends PhabricatorController { $message = "

The repository daemon is not running on this machine. ". "{$common}

"; - } catch (CommandException $ex) { + } catch (Exception $ex) { $title = "Unable To Verify Repository Daemon"; $message = "

Unable to determine if the repository daemon is running on this ".