Skip to content

Commit 4fc44d5

Browse files
committed
fix: show relative path in NotFoundException
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 6e7ffde commit 4fc44d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Utils/Scanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function scan($dir = '', $recursive = \OC\Files\Cache\Scanner::SCAN_RECUR
251251
});
252252

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

257257
if ($this->useTransaction) {

0 commit comments

Comments
 (0)