浏览代码

Fixed wrong variable name in Esi.

Marc Weistroff 14 年之前
父节点
当前提交
15d840060b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/HttpKernel/Cache/Esi.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Cache/Esi.php

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