Skip to content

Navigation Menu

Sign in
Appearance settings

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 c04df59

Browse filesBrowse files
[FrameworkBundle] Avoid secrets:decrypt-to-local command to fail
1 parent 66e8ae9 commit c04df59
Copy full SHA for c04df59

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/SecretsDecryptToLocalCommand.php
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.