mirror of https://github.com/nextcloud/server
Typo in error message
This commit is contained in:
parent
300eb54c87
commit
3e8a5f8a53
|
@ -1578,7 +1578,7 @@ class View {
|
|||
public function getOwner($path) {
|
||||
$info = $this->getFileInfo($path);
|
||||
if (!$info) {
|
||||
throw new NotFoundException($path . 'not found while trying to get owner');
|
||||
throw new NotFoundException($path . ' not found while trying to get owner');
|
||||
}
|
||||
return $info->getOwner()->getUID();
|
||||
}
|
||||
|
@ -2026,7 +2026,7 @@ class View {
|
|||
public function getUidAndFilename($filename) {
|
||||
$info = $this->getFileInfo($filename);
|
||||
if (!$info instanceof \OCP\Files\FileInfo) {
|
||||
throw new NotFoundException($this->getAbsolutePath($filename) . 'not found');
|
||||
throw new NotFoundException($this->getAbsolutePath($filename) . ' not found');
|
||||
}
|
||||
$uid = $info->getOwner()->getUID();
|
||||
if ($uid != \OCP\User::getUser()) {
|
||||
|
@ -2035,7 +2035,7 @@ class View {
|
|||
try {
|
||||
$filename = $ownerView->getPath($info['fileid']);
|
||||
} catch (NotFoundException $e) {
|
||||
throw new NotFoundException('File with id ' . $info['fileid'] . 'not found for user ' . $uid);
|
||||
throw new NotFoundException('File with id ' . $info['fileid'] . ' not found for user ' . $uid);
|
||||
}
|
||||
}
|
||||
return [$uid, $filename];
|
||||
|
|
Loading…
Reference in New Issue