8000 [FrameworkBundle] Silence "Failed to remove directory" on cache:clear · symfony/symfony@3ba624a · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ba624a

Browse files
[FrameworkBundle] Silence "Failed to remove directory" on cache:clear
1 parent c572e6c commit 3ba624a

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