Skip to content

Commit

Permalink
[FrameworkBundle] Silence "Failed to remove directory" on cache:clear
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 1, 2018
1 parent c572e6c commit 3ba624a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -156,7 +156,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
try {
$fs->remove($oldCacheDir);
} catch (IOException $e) {
$io->warning($e->getMessage());
if ($output->isVerbose()) {
$io->warning($e->getMessage());
}
}

if ($output->isVerbose()) {
Expand Down

0 comments on commit 3ba624a

Please sign in to comment.