Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b52451c

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
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('Secret "%s" has been skipped as there was an error reading it.', $k));
81+
continue;
8382
}
8483

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

0 commit comments

Comments
 (0)