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:
commit
341cba1b1e
|
@ -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>");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue