Do not catch subrequest exceptions, because it makes debugging hard.

This commit is contained in:
ornicar 2011-02-10 11:20:04 -08:00 committed by Fabien Potencier
parent 9bcd1b3e5f
commit b043bfde0b
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class HttpKernel extends BaseHttpKernel
}
try {
$response = $this->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
$response = $this->handle($subRequest, HttpKernelInterface::SUB_REQUEST, false);
if (!$response->isSuccessful()) {
throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %s).', $request->getUri(), $response->getStatusCode()));