diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php index 1d3a96e982c25..6d8820443a2c1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php @@ -77,9 +77,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int foreach ($secrets as $k => $v) { if (null === $v) { - $io->error($this->vault->getLastMessage()); - - return 1; + $io->error($this->vault->getLastMessage() ?? sprintf('Secret "%s" has been skipped as there was an error reading it.', $k)); + continue; } $this->localVault->seal($k, $v);