Browse Source

Fixed wrong variable name in Esi.

Marc Weistroff 14 năm trước cách đây
mục cha
commit
15d840060b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();