Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/issue/PhabricatorSetupIssue.php
Show All 22 Lines | final class PhabricatorSetupIssue extends Phobject { | ||||
public static function newDatabaseConnectionIssue( | public static function newDatabaseConnectionIssue( | ||||
Exception $ex, | Exception $ex, | ||||
$is_fatal) { | $is_fatal) { | ||||
$message = pht( | $message = pht( | ||||
"Unable to connect to MySQL!\n\n". | "Unable to connect to MySQL!\n\n". | ||||
"%s\n\n". | "%s\n\n". | ||||
"Make sure Phabricator and MySQL are correctly configured.", | "Make sure databases connection information and MySQL are ". | ||||
"correctly configured.", | |||||
$ex->getMessage()); | $ex->getMessage()); | ||||
$issue = id(new self()) | $issue = id(new self()) | ||||
->setIssueKey('mysql.connect') | ->setIssueKey('mysql.connect') | ||||
->setName(pht('Can Not Connect to MySQL')) | ->setName(pht('Can Not Connect to MySQL')) | ||||
->setMessage($message) | ->setMessage($message) | ||||
->setIsFatal($is_fatal) | ->setIsFatal($is_fatal) | ||||
->addRelatedPhabricatorConfig('mysql.host') | ->addRelatedPhabricatorConfig('mysql.host') | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |