Skip to content

Commit

Permalink
Silently ignore failures when preflighting option overrides. (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson authored May 20, 2023
1 parent d655383 commit 1a21eda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CommandProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ protected function updateFormatterOptions($commandData)
$format = $formatterOptions->getFormat();
if ($format) {
$placeholderStructuredOutput = [];
$formatter = $this->formatterManager->getFormatter($format);
$options = $this->formatterManager->overrideOptions($formatter, $placeholderStructuredOutput, $formatterOptions);
try {
$formatter = $this->formatterManager->getFormatter($format);
$this->formatterManager->overrideOptions($formatter, $placeholderStructuredOutput, $formatterOptions);
} catch (\Exception $e) {
}
}
}

Expand Down

0 comments on commit 1a21eda

Please sign in to comment.