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();
|
||||
|
||||
phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api');
|
||||
set_error_handler(
|
||||
array('PhutilErrorHandler', 'handleError'));
|
||||
set_exception_handler(
|
||||
array('PhutilErrorHandler', 'handleException'));
|
||||
|
||||
PhutilErrorHandler::initialize();
|
||||
|
||||
} catch (Exception $ex) {
|
||||
phabricator_fatal_config_error(
|
||||
"[Exception] ".$ex->getMessage());
|
||||
|
|
Loading…
Reference in a new issue