diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-24 17:48:54 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-10 15:00:39 +0400 |
commit | dfa57cdc013c47c2b51bcc3b037c9222a92e86cf (patch) | |
tree | 9ef3a213cfff6c69e04604ea492bf721ced616fc /apps/files | |
parent | c526ebb8329df3cd100df82ff0517f82c18b7f2f (diff) |
Show a proper error message when trying to scan the filesystem for a non existing user
Backport of e8280c80da52399594ba116ef78bddf16b9e7f25 from master
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/command/scan.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php index 5fc63250f6c..cd90e3f8012 100644 --- a/apps/files/command/scan.php +++ b/apps/files/command/scan.php @@ -68,7 +68,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>"); + } } } } |