8000 changes · symfony/symfony@871c449 · GitHub
[go: up one dir, main page]

Skip to content

Commit 871c449

Browse files
changes
1 parent 99a3e05 commit 871c449

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,7 @@ protected function deliver(Response $response)
9999
{
100100
if (!$response->isSuccessful()) {
101101
$responseStatusCode = $response->getStatusCode();
102-
throw new \RuntimeException(
103-
sprintf('Error when rendering "%s" (Status code is %d).', $this->requestStack->getCurrentRequest()->getUri(), $responseStatusCode),
104-
0,
105-
new HttpException($responseStatusCode))
106-
;
102+
throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %d).', $this->requestStack->getCurrentRequest()->getUri(), $responseStatusCode), 0, new HttpException($responseStatusCode));
107103
}
108104

109105
if (!$response instanceof StreamedResponse) {

0 commit comments

Comments
 (0)
0