From 3ba624af9fe64c564c6c643405108d273d5d2bd5 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 1 Mar 2018 15:51:10 +0100 Subject: [PATCH] [FrameworkBundle] Silence "Failed to remove directory" on cache:clear --- .../Bundle/FrameworkBundle/Command/CacheClearCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php index 5437b0bcc2..9c77853101 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php @@ -156,7 +156,9 @@ EOF try { $fs->remove($oldCacheDir); } catch (IOException $e) { - $io->warning($e->getMessage()); + if ($output->isVerbose()) { + $io->warning($e->getMessage()); + } } if ($output->isVerbose()) {