Merge pull request #35679 from nextcloud/catch-not-found-exception-in-jscombiner

Catch NotFoundException as well in JSCombiner
This commit is contained in:
Vincent Petry 2022-12-16 16:28:47 +01:00 committed by GitHub
commit 4322fc3a0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ class JSCombiner {
$gzipFile->putContent(gzencode($res, 9));
$this->logger->debug('JSCombiner: successfully cached: ' . $fileName);
return true;
} catch (NotPermittedException $e) {
} catch (NotPermittedException|NotFoundException $e) {
$this->logger->error('JSCombiner: unable to cache: ' . $fileName);
return false;
}