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
-------
3ba624af9f
[FrameworkBundle] Silence "Failed to remove directory" on cache:clear
This commit is contained in:
commit
6628318b29
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user