Skip to content

Commit c452316

Browse files
committed
Catch Throwable
1 parent c0435d6 commit c452316

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Connector/NetteConnector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\BrowserKit\Client;
2020
use Symfony\Component\BrowserKit\Request;
2121
use Symfony\Component\BrowserKit\Response;
22+
use Throwable;
2223

2324
/**
2425
* @author Jáchym Toušek <enumag@gmail.com>
@@ -72,7 +73,7 @@ public function doRequest($request)
7273
ob_start();
7374
$container->getByType(Application::class)->run();
7475
$content = ob_get_clean();
75-
} catch (Exception $e) {
76+
} catch (Throwable $e) {
7677
ob_end_clean();
7778
throw $e;
7879
}

0 commit comments

Comments
 (0)