Skip to content

Commit 4174300

Browse files
authored
Merge pull request #1 from jdomenechb/exception-output-patch-1
Fix no output when exception is raised
2 parents bfa98f7 + 756c796 commit 4174300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Loop/RequestLoop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function request(ServerRequestInterface $request)
108108
'404: Page not found'
109109
);
110110
} catch (\Throwable $e) {
111-
$this->consoleOutput->getErrorOutput()->writeln($e->getMessage(), PHP_EOL, $e->getTraceAsString());
111+
$this->consoleOutput->getErrorOutput()->writeln(['ERROR: ' . $e->getMessage(), $e->getTraceAsString()]);
112112

113113
return new Response(
114114
500,

0 commit comments

Comments
 (0)