We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef218e commit 508ceb9Copy full SHA for 508ceb9
src/Arachne/Codeception/Util/Connector/Nette.php
@@ -44,9 +44,15 @@ public function doRequest($request)
44
$httpResponse = $this->container->getByType('Nette\Http\IResponse');
45
$httpResponse->setCode(IResponse::S200_OK);
46
47
- ob_start();
48
- $this->container->getByType('Nette\Application\Application')->run();
49
- $content = ob_get_clean();
+ try {
+ ob_start();
+ $this->container->getByType('Nette\Application\Application')->run();
50
+ $content = ob_get_clean();
51
+
52
+ } catch (\Exception $e) {
53
+ ob_end_clean();
54
+ throw $e;
55
+ }
56
57
$code = $httpResponse->getCode();
58
$headers = $httpResponse->getHeaders();
0 commit comments