From 2bdb9a9242e4a17a5fc3fb2caf48947ee78e0594 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Mon, 20 Oct 2025 20:33:54 +0200 Subject: [PATCH] Add example error output to runner output --- examples/runner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/runner b/examples/runner index 798a6bbee..be9e1b312 100755 --- a/examples/runner +++ b/examples/runner @@ -119,7 +119,8 @@ $app = (new SingleCommandApplication('Symfony AI Example Runner')) foreach ($exampleRuns as $run) { if (!$run['process']->isSuccessful()) { $io->section('Error in ' . $run['example']->getRelativePathname()); - $io->text($run['process']->getOutput()); + $output = $run['process']->getErrorOutput(); + $io->text('' !== $output ? $output : $run['process']->getOutput()); } }