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 1868665 commit 0b011c9Copy full SHA for 0b011c9
src/bref/src/ConsoleApplicationRunner.php
@@ -37,16 +37,17 @@ public function run(): int
37
$output = new BufferedOutput();
38
$exitCode = $this->application->run($input, $output);
39
40
+ $content = $output->fetch();
41
// Echo the output so that it is written to CloudWatch logs
- echo $output->fetch();
42
+ echo $content;
43
44
if ($exitCode > 0) {
45
throw new \Exception('The command exited with a non-zero status code: '.$exitCode);
46
}
47
48
return [
49
'exitCode' => $exitCode, // will always be 0
- 'output' => $output->fetch(),
50
+ 'output' => $content,
51
];
52
});
53
0 commit comments