1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Clean up another insufficiently-general exception

Summary:
Ref T11044. This is still catching the older exceptions, which are now more general.

If you loaded the web UI without MySQL running, this meant you got a less-helpful error.

Test Plan: Stopped MySQL, loaded web UI, got a more-helpful error.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11044

Differential Revision: https://secure.phabricator.com/D16930
This commit is contained in:
epriestley 2016-11-23 10:29:53 -08:00
parent ce18a8e208
commit f199243104
2 changed files with 2 additions and 4 deletions

View file

@ -81,9 +81,7 @@ abstract class AphrontApplicationConfiguration extends Phobject {
try {
PhabricatorEnv::initializeWebEnvironment();
$database_exception = null;
} catch (AphrontInvalidCredentialsQueryException $ex) {
$database_exception = $ex;
} catch (AphrontConnectionQueryException $ex) {
} catch (PhabricatorClusterStrandedException $ex) {
$database_exception = $ex;
}

View file

@ -22,7 +22,7 @@ final class PhabricatorSetupIssue extends Phobject {
private $links;
public static function newDatabaseConnectionIssue(
AphrontQueryException $ex,
Exception $ex,
$is_fatal) {
$message = pht(