Skip to content

Commit c7a8ffc

Browse files
[FrameworkBundle] Avoid secrets:decrypt-to-local command to fail
1 parent 66e8ae9 commit c7a8ffc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7777

7878
foreach ($secrets as $k => $v) {
7979
if (null === $v) {
80-
$io->error($this->vault->getLastMessage());
81-
82-
return 1;
80+
$io->error($this->vault->getLastMessage() ?? \sprintf('An error occured for secret "%s" and it will be skipped.', $k));
81+
continue;
8382
}
8483

8584
$this->localVault->seal($k, $v);

0 commit comments

Comments
 (0)