fix: improve error message when cache rename source can't be found

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2025-05-15 15:06:55 +02:00 committed by Andy Scherzinger
parent a9d0c2164f
commit 4dba5e141b

View file

@ -663,7 +663,7 @@ class Cache implements ICache {
$sourceData = $sourceCache->get($sourcePath);
if (!$sourceData) {
throw new \Exception('Invalid source storage path: ' . $sourcePath);
throw new \Exception('Source path not found in cache: ' . $sourcePath);
}
$shardDefinition = $this->connection->getShardDefinition('filecache');