diff --git a/Classes/Command/SortingCommand.php b/Classes/Command/SortingCommand.php index a9785b08..47103f11 100644 --- a/Classes/Command/SortingCommand.php +++ b/Classes/Command/SortingCommand.php @@ -57,12 +57,17 @@ public function execute(InputInterface $input, OutputInterface $output): int $input->getOption('enable-logging'), $pid ); - foreach ($errors as $error) { - $output->writeln($error); - } - if (empty($errors)) { - $output->writeln('migration finished'); + + if ($output->isVerbose()) { + $output->writeln('Checking ' . ($pid>0 ? 'page ' . $pid : 'entire pagetree') . ($dryrun ? ' [DRYRUN]' : '')); + foreach ($errors as $error) { + $output->writeln($error); + } + if (empty($errors)) { + $output->writeln('- all good, nothing to do here'); + } } - return 0; + + return self::SUCCESS; } } diff --git a/Classes/Integrity/Sorting.php b/Classes/Integrity/Sorting.php index 805d2cb4..ff390c08 100644 --- a/Classes/Integrity/Sorting.php +++ b/Classes/Integrity/Sorting.php @@ -93,7 +93,7 @@ protected function fixChildrenSortingUpdateRequired(Container $container, array $children = $container->getChildrenByColPos($colPos); foreach ($children as $child) { if ($child['sorting'] <= $prevSorting) { - $this->errors[] = 'container uid: ' . $containerRecord['uid'] . ', pid ' . $containerRecord['pid'] . ' must be fixed'; + $this->errors[] = '- pid ' . $containerRecord['pid'] . ', container uid ' . $containerRecord['uid'] . ' must be fixed'; return true; } $prevSorting = $child['sorting'];