Skip to content

Commit 2bdb9a9

Browse files
committed
Add example error output to runner output
1 parent 27f4121 commit 2bdb9a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/runner

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ $app = (new SingleCommandApplication('Symfony AI Example Runner'))
119119
foreach ($exampleRuns as $run) {
120120
if (!$run['process']->isSuccessful()) {
121121
$io->section('Error in ' . $run['example']->getRelativePathname());
122-
$io->text($run['process']->getOutput());
122+
$output = $run['process']->getErrorOutput();
123+
$io->text('' !== $output ? $output : $run['process']->getOutput());
123124
}
124125
}
125126

0 commit comments

Comments
 (0)