Changeset View
Changeset View
Standalone View
Standalone View
webroot/index.php
Show All 18 Lines | try { | ||||
AphrontApplicationConfiguration::runHTTPRequest($sink); | AphrontApplicationConfiguration::runHTTPRequest($sink); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$main_exception = $ex; | $main_exception = $ex; | ||||
} catch (Throwable $ex) { | } catch (Throwable $ex) { | ||||
$main_exception = $ex; | $main_exception = $ex; | ||||
} | } | ||||
if ($main_exception) { | if ($main_exception) { | ||||
$response_exception = null; | |||||
try { | try { | ||||
$response = new AphrontUnhandledExceptionResponse(); | $response = new AphrontUnhandledExceptionResponse(); | ||||
$response->setException($main_exception); | $response->setException($main_exception); | ||||
$response->setShowStackTraces($sink->getShowStackTraces()); | |||||
PhabricatorStartup::endOutputCapture(); | PhabricatorStartup::endOutputCapture(); | ||||
$sink->writeResponse($response); | $sink->writeResponse($response); | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
$response_exception = $ex; | $response_exception = $ex; | ||||
} catch (Throwable $ex) { | } catch (Throwable $ex) { | ||||
$response_exception = $ex; | $response_exception = $ex; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |