Skip to content

Commit

Permalink
Corrige le catch-all dans LitteralisImportCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Jan 21, 2025
1 parent 699e0e3 commit 2573b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
$report = $this->executor->execute($name, $orgId, $now, $this->reporter);

$output->write($report);
} catch (\RuntimeException $exc) {
} catch (\Exception $exc) {
$output->writeln($exc->getMessage());

$returnCode = Command::FAILURE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testExecuteError()
->willReturnCallback(
fn () => match ($matcher->getInvocationCount()) {
1 => 'report1' . PHP_EOL,
2 => throw new \RuntimeException('Failed'),
2 => throw new \Exception('Failed'),
3 => 'report3' . PHP_EOL,
},
);
Expand Down

0 comments on commit 2573b45

Please sign in to comment.