Skip to content

Commit 48e94ba

Browse files
authored
Merge pull request #52873 from nextcloud/cache-rename-source-error
fix: improve error message when cache rename source can't be found
2 parents cf44995 + 5329c37 commit 48e94ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Cache/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath) {
663663

664664
$sourceData = $sourceCache->get($sourcePath);
665665
if (!$sourceData) {
666-
throw new \Exception('Invalid source storage path: ' . $sourcePath);
666+
throw new \Exception('Source path not found in cache: ' . $sourcePath);
667667
}
668668

669669
$shardDefinition = $this->connection->getShardDefinition('filecache');

0 commit comments

Comments
 (0)