Skip to content

Commit 05e64cb

Browse files
committed
minor #792 Add example error output to runner output (chr-hertel)
This PR was merged into the main branch. Discussion ---------- Add example error output to runner output | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT Before: <img width="1273" height="873" alt="image" src="https://github.com/user-attachments/assets/cf7f09e5-b5c6-4657-9687-a1cf498bb821" /> After: <img width="1646" height="948" alt="image" src="https://github.com/user-attachments/assets/74288f19-2728-41e7-b884-240b4bd5d45e" /> Commits ------- 2bdb9a9 Add example error output to runner output
2 parents f3a1513 + 2bdb9a9 commit 05e64cb

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)