Skip to content

Commit cb8696f

Browse files
committed
MCP-957: Parallel Indexation for Catalog Permission
-Show command when indexer is disabled;
1 parent 0763e06 commit cb8696f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/code/Magento/Indexer/Console/Command/IndexerShowDimensionsModeCommand.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
9292
$output->writeln(sprintf('%-50s ', $indexer->getTitle() . ':') . $mode);
9393
}
9494
} catch (\Exception $e) {
95-
$output->writeln('"' . $indexer->getTitle() . '" indexer process unknown error:' . PHP_EOL);
96-
$output->writeln($e->getMessage() . PHP_EOL);
97-
// we must have an exit code higher than zero to indicate something was wrong
98-
$returnValue = Cli::RETURN_FAILURE;
95+
if ($e instanceof \InvalidArgumentException && $indexerId !== 'catalogpermissions_category') {
96+
$output->writeln('"' . $indexer->getTitle() . '" indexer process unknown error:' . PHP_EOL);
97+
$output->writeln($e->getMessage() . PHP_EOL);
98+
// we must have an exit code higher than zero to indicate something was wrong
99+
$returnValue = Cli::RETURN_FAILURE;
100+
}
99101
}
100102

101103
return $returnValue;

0 commit comments

Comments
 (0)