Browse Source

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

Show a proper error message when trying to scan the filesystem for a non...
remotes/origin/fix-10825
Clark Tomlinson 11 years ago
parent
commit
341cba1b1e
  1. 6
      apps/files/command/scan.php

6
apps/files/command/scan.php

@ -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…
Cancel
Save