Skip to content

Commit

Permalink
fix: show relative path in NotFoundException
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Feb 10, 2025
1 parent 6e7ffde commit 4fc44d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Utils/Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function scan($dir = '', $recursive = \OC\Files\Cache\Scanner::SCAN_RECUR
});

if (!$storage->file_exists($relativePath)) {
throw new NotFoundException($dir);
throw new NotFoundException($dir . ' (relative path: "' . $relativePath . '")');
}

if ($this->useTransaction) {
Expand Down

0 comments on commit 4fc44d5

Please sign in to comment.