Fixed wrong variable name in Esi.

This commit is contained in:
Marc Weistroff 2010-09-07 15:49:08 +02:00 committed by Fabien Potencier
parent c39534e258
commit 15d840060b

View File

@ -176,7 +176,7 @@ class Esi
$response = $cache->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
if (200 != $response->getStatusCode()) {
throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %s).', $request->getUri(), $response->getStatusCode()));
throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %s).', $subRequest->getUri(), $response->getStatusCode()));
}
return $response->getContent();