Skip to content

Commit cc936cd

Browse files
[FrameworkBundle] Avoid secrets:decrypt-to-local command to fail
1 parent a534385 commit cc936cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)