From 1a21eda92b47afaeecce33036b92b112e35d0660 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 19 May 2023 21:17:45 -0700 Subject: [PATCH] Silently ignore failures when preflighting option overrides. (#302) --- src/CommandProcessor.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CommandProcessor.php b/src/CommandProcessor.php index 99fc4b6..5538fb1 100644 --- a/src/CommandProcessor.php +++ b/src/CommandProcessor.php @@ -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) { + } } }