Merge pull request #11281 from owncloud/scanner-unkown-user

Show a proper error message when trying to scan the filesystem for a non...
This commit is contained in:
Clark Tomlinson 2014-09-24 15:11:11 -04:00
commit 341cba1b1e
1 changed files with 5 additions and 1 deletions

View File

@ -77,7 +77,11 @@ class Scan extends Command {
if (is_object($user)) {
$user = $user->getUID();
}
$this->scanFiles($user, $output);
if ($this->userManager->userExists($user)) {
$this->scanFiles($user, $output);
} else {
$output->writeln("<error>Unknown user $user</error>");
}
}
}
}