Skip to content

Commit

Permalink
Add comments for possibly confusing code.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 14, 2014
1 parent c58e7da commit f19916b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Cake/Error/ExceptionRenderer.php
Expand Up @@ -157,7 +157,13 @@ protected function _getController($exception) {
} catch (Exception $e) {
$startup = false;
}
if ($startup === false && !empty($controller) && $controller->Components->enabled('RequestHandler')) {
// Retry RequestHandler, as another aspect of startupProcess()
// could have failed. Ignore any exceptions out of startup, as
// there could be userland input data parsers.
if ($startup === false &&
!empty($controller) &&
$controller->Components->enabled('RequestHandler')
) {
try {
$controller->RequestHandler->startup($controller);
} catch (Exception $e) {
Expand Down

0 comments on commit f19916b

Please sign in to comment.