8000 [BrowserKit] added the standard output when an error occurs during th… · vatson/symfony@fbc422b · GitHub
[go: up one dir, main page]

Skip to content

Commit fbc422b

Browse files
committed
[BrowserKit] added the standard output when an error occurs during the request execution (it might contain very useful information for debugging)
1 parent da507f1 commit fbc422b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function doRequestInProcess($request)
291291
$process->run();
292292

293293
if (!$process->isSuccessful() || !preg_match('/^O\:\d+\:/', $process->getOutput())) {
294-
throw new \RuntimeException($process->getErrorOutput());
294+
throw new \RuntimeException('OUTPUT: '.$process->getOutput().' ERROR OUTPUT: '.$process->getErrorOutput());
295295
}
296296

297297
return unserialize($process->getOutput());

0 commit comments

Comments
 (0)
0