8000 [FrameworkBundle] Avoid secrets:decrypt-to-local command to fail · symfony/symfony@e9b3d67 · GitHub
[go: up one dir, main page]

Skip to content
Sign in

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0