Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/configuration/AphrontApplicationConfiguration.php
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | public static function runHTTPRequest(AphrontHTTPSink $sink) { | ||||
try { | try { | ||||
PhabricatorEnv::initializeWebEnvironment(); | PhabricatorEnv::initializeWebEnvironment(); | ||||
$database_exception = null; | $database_exception = null; | ||||
} catch (PhabricatorClusterStrandedException $ex) { | } catch (PhabricatorClusterStrandedException $ex) { | ||||
$database_exception = $ex; | $database_exception = $ex; | ||||
} | } | ||||
// If we're in developer mode, set a flag so that top-level exception | |||||
// handlers can add more information. | |||||
if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode')) { | |||||
$sink->setShowStackTraces(true); | |||||
} | |||||
if ($database_exception) { | if ($database_exception) { | ||||
$issue = PhabricatorSetupIssue::newDatabaseConnectionIssue( | $issue = PhabricatorSetupIssue::newDatabaseConnectionIssue( | ||||
$database_exception, | $database_exception, | ||||
true); | true); | ||||
$response = PhabricatorSetupCheck::newIssueResponse($issue); | $response = PhabricatorSetupCheck::newIssueResponse($issue); | ||||
return self::writeResponse($sink, $response); | return self::writeResponse($sink, $response); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 735 Lines • Show Last 20 Lines |