Skip to content

Commit e6d10d6

Browse files
Merge branch '4.4' into 5.3
* 4.4: [FrameworkBundle] Avoid secrets:decrypt-to-local command to fail
2 parents 8150b0f + cc936cd commit e6d10d6

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
@@ -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('Secret "%s" has been skipped as there was an error reading it.', $k));
95+
continue;
9796
}
9897

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

0 commit comments

Comments
 (0)