[FrameworkBundle] Silence "Failed to remove directory" on cache:clear

This commit is contained in:
Nicolas Grekas 2018-03-01 15:51:10 +01:00
parent c572e6c570
commit 3ba624af9f

View File

@ -156,7 +156,9 @@ EOF
try { try {
$fs->remove($oldCacheDir); $fs->remove($oldCacheDir);
} catch (IOException $e) { } catch (IOException $e) {
$io->warning($e->getMessage()); if ($output->isVerbose()) {
$io->warning($e->getMessage());
}
} }
if ($output->isVerbose()) { if ($output->isVerbose()) {