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

Skip to content

Commit 6628318

Browse files
committed
bug #26358 [FrameworkBundle] Silence "Failed to remove directory" on cache:clear (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Silence "Failed to remove directory" on cache:clear | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #2600 | License | MIT | Doc PR | - Let's improve the experience of ppl (see old linked issue). This warning is just noise to most. Commits ------- 3ba624a [FrameworkBundle] Silence "Failed to remove directory" on cache:clear
2 parents b3f807c + 3ba624a commit 6628318

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
156156
try {
157157
$fs->remove($oldCacheDir);
158158
} catch (IOException $e) {
159-
$io->warning($e->getMessage());
159+
if ($output->isVerbose()) {
160+
$io->warning($e->getMessage());
161+
}
160162
}
161163

162164
if ($output->isVerbose()) {

0 commit comments

Comments
 (0)