mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Move to explicit initialization of PhutilErrorHandler.
This commit is contained in:
parent
8c520f6a93
commit
c6beb7a4fb
1 changed files with 3 additions and 4 deletions
|
@ -66,10 +66,9 @@ try {
|
||||||
DarkConsoleXHProfPluginAPI::hookProfiler();
|
DarkConsoleXHProfPluginAPI::hookProfiler();
|
||||||
|
|
||||||
phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api');
|
phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api');
|
||||||
set_error_handler(
|
|
||||||
array('PhutilErrorHandler', 'handleError'));
|
PhutilErrorHandler::initialize();
|
||||||
set_exception_handler(
|
|
||||||
array('PhutilErrorHandler', 'handleException'));
|
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
phabricator_fatal_config_error(
|
phabricator_fatal_config_error(
|
||||||
"[Exception] ".$ex->getMessage());
|
"[Exception] ".$ex->getMessage());
|
||||||
|
|
Loading…
Reference in a new issue