Typo in error message

This commit is contained in:
Lukas Reschke 2015-12-14 10:24:38 +01:00 committed by Thomas Müller
parent 300eb54c87
commit 3e8a5f8a53
1 changed files with 3 additions and 3 deletions

View File

@ -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];