Skip to content

Commit b8feb74

Browse files
committed
add exception type
1 parent 8098f6d commit b8feb74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Illuminate/View/Engines/CompilerEngine.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Illuminate\View\Engines;
44

55
use Illuminate\Filesystem\Filesystem;
6+
use Illuminate\Http\Exceptions\HttpResponseException;
67
use Illuminate\View\Compilers\CompilerInterface;
78
use Illuminate\View\ViewException;
89
use Symfony\Component\HttpKernel\Exception\HttpException;
@@ -101,7 +102,7 @@ public function get($path, array $data = [])
101102
*/
102103
protected function handleViewException(Throwable $e, $obLevel)
103104
{
104-
if ($e instanceof HttpException) {
105+
if ($e instanceof HttpException || $e instanceof HttpResponseException) {
105106
parent::handleViewException($e, $obLevel);
106107
}
107108

0 commit comments

Comments
 (0)