Skip to content

Commit

Permalink
Merge pull request #353 from nextcloud/fix/fix-debug-output-typing
Browse files Browse the repository at this point in the history
Fix type error in debug mode when an Exception is thrown
  • Loading branch information
come-nc authored Feb 20, 2023
2 parents c3c98cd + 0a2c078 commit 79c84f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Command/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79c84f0

Please sign in to comment.