Skip to content

Commit

Permalink
bug #26358 [FrameworkBundle] Silence "Failed to remove directory" on …
Browse files Browse the repository at this point in the history
…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
-------

3ba624a [FrameworkBundle] Silence "Failed to remove directory" on cache:clear
  • Loading branch information
fabpot committed Mar 1, 2018
2 parents b3f807c + 3ba624a commit 6628318
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 6628318

Please sign in to comment.