mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Make sure exceptions are surfaced from setup
Summary: If setup throws an exception, we may swallow it currently. Make sure it's printed. Test Plan: Changed "git" to "qit" to force a command failure, ran setup, got a more useful error. Reviewers: btrahan, vrana, jungejason Reviewed By: vrana CC: aran Differential Revision: https://secure.phabricator.com/D2197
This commit is contained in:
parent
01bd844926
commit
28dfeeb5d5
1 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,12 @@ foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PhabricatorEnv::getEnvConfig('phabricator.setup')) {
|
if (PhabricatorEnv::getEnvConfig('phabricator.setup')) {
|
||||||
PhabricatorSetup::runSetup();
|
try {
|
||||||
|
PhabricatorSetup::runSetup();
|
||||||
|
} catch (Exception $ex) {
|
||||||
|
echo "EXCEPTION!\n";
|
||||||
|
echo $ex;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue