[Pkg-owncloud-commits] [owncloud] 58/273: Add error message when no users specified to files:scan command
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:12:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit fd04b3070fd88679778a806764baf0989d95f161
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Jun 26 11:58:38 2014 +0200
Add error message when no users specified to files:scan command
---
apps/files/command/scan.php | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index 25ab70a..1e7b54b 100644
--- a/apps/files/command/scan.php
+++ b/apps/files/command/scan.php
@@ -63,6 +63,11 @@ class Scan extends Command {
$users = $input->getArgument('user_id');
}
+ if (count($users) === 0) {
+ $output->writeln("<error>Please specify the user id to scan or \"--all\" to scan for all users</error>");
+ return;
+ }
+
foreach ($users as $user) {
if (is_object($user)) {
$user = $user->getUID();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list