Show a proper error message when trying to scan the filesystem for a non existing user

remotes/origin/fix-10825
Robin Appelman 12 years ago
parent 3da6b3b533
commit e8280c80da
  1. 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