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

Skip to content

Commit e9b3d67

Browse files
[FrameworkBundle] Avoid secrets:decrypt-to-local command to fail
1 parent 8859c64 commit e9b3d67

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
@@ -91,9 +91,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9191

9292
foreach ($secrets as $k => $v) {
9393
if (null === $v) {
94-
$io->error($this->vault->getLastMessage());
95-
96-
return 1;
94+
$io->error($this->vault->getLastMessage() ?? \sprintf('An error occured for secret "%s" and it will be skipped.', $k));
95+
continue;
9796
}
9897

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

0 commit comments

Comments
 (0)