From 0a2c078f43b8a707c8b1e663cd18e90de5afa8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 14 Feb 2023 11:28:28 +0100 Subject: [PATCH] When using debug mode and an Exception is thrown by export, the command was crashing on a type error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/Command/Export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Command/Export.php b/lib/Command/Export.php index 5dde81b4..55458d65 100644 --- a/lib/Command/Export.php +++ b/lib/Command/Export.php @@ -212,7 +212,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $io->writeln("Export saved in $folder/$exportName.zip"); } catch (\Exception $e) { if ($io->isDebug()) { - $io->error($e->getTrace()); + $io->error($e->getTraceAsString()); } $io->error($e->getMessage()); return $e->getCode() !== 0 ? (int)$e->getCode() : 1;