Issue #9318: catch exceptions in SCSSCacher::resetCache()

Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
This commit is contained in:
Roland Tapken 2018-04-30 17:50:56 +02:00 committed by Julius Härtl
parent 2aa108000c
commit 6270a01cab
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 5 additions and 1 deletions

View File

@ -273,7 +273,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()]);
}
}
}
}