1
0
Fork 0
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:
epriestley 2011-05-11 07:20:04 -07:00
parent 8c520f6a93
commit c6beb7a4fb

View file

@ -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());