Merge pull request #39698 from joshtrichards/invalid-source-storage-path-catch

This commit is contained in:
John Molakvoæ 2023-08-05 12:17:33 +02:00 committed by GitHub
commit b27a2e9ec5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -668,7 +668,7 @@ class Cache implements ICache {
$targetPath = $this->normalize($targetPath);
$sourceData = $sourceCache->get($sourcePath);
if ($sourceData === false) {
if (!$sourceData) {
throw new \Exception('Invalid source storage path: ' . $sourcePath);
}