Issue #9318: catch exceptions in SCSSCacher::resetCache()
Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
This commit is contained in:
parent
5756a8d8ff
commit
cc54429646
|
@ -266,7 +266,11 @@ class SCSSCacher {
|
|||
$appDirectory = $this->appData->getDirectoryListing();
|
||||
foreach ($appDirectory as $folder) {
|
||||
foreach ($folder->getDirectoryListing() as $file) {
|
||||
$file->delete();
|
||||
try {
|
||||
$file->delete();
|
||||
} catch(NotPermittedException $e) {
|
||||
$this->logger->logException($e, ['message' => 'SCSSCacher: unable to delete file: ' . $file->getName()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue