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