Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-09-24 23:11:11 +0400
committerClark Tomlinson <fallen013@gmail.com>2014-09-24 23:11:11 +0400
commit341cba1b1ea71aaf1ccf4bd5ada50d63760c929e (patch)
tree5d1222b0273acaa9b5e9301a7c7275c7988c9b10
parent17f97ea2ca5557b3e57a10bf5c1e112325d4173e (diff)
parente8280c80da52399594ba116ef78bddf16b9e7f25 (diff)
Merge pull request #11281 from owncloud/scanner-unkown-user
Show a proper error message when trying to scan the filesystem for a non...
-rw-r--r--apps/files/command/scan.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index e4d719a8b4b..2dca0e0e67c 100644
--- a/apps/files/command/scan.php
+++ b/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>");
+ }
}
}
}