diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-21 13:13:38 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-21 13:19:35 +0200 |
commit | d2e90b6050d1c26cb365c81e987ccc1577ae56d0 (patch) | |
tree | 5ea92a89315ef9f3e0d45fe8deccaf2e9147b8c1 /lib/private/encryption | |
parent | 6006a03ef1361f8805c323627fb6d8e9c37be9cd (diff) | |
download | nextcloud-server-d2e90b6050d1c26cb365c81e987ccc1577ae56d0.tar.gz nextcloud-server-d2e90b6050d1c26cb365c81e987ccc1577ae56d0.zip |
improved error message if user doesn't exists
Diffstat (limited to 'lib/private/encryption')
-rw-r--r-- | lib/private/encryption/decryptall.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/encryption/decryptall.php b/lib/private/encryption/decryptall.php index e59be17886d..1ff9c74ef84 100644 --- a/lib/private/encryption/decryptall.php +++ b/lib/private/encryption/decryptall.php @@ -80,6 +80,11 @@ class DecryptAll { $this->input = $input; $this->output = $output; + if ($user !== '' && $this->userManager->userExists($user) === false) { + $this->output->writeln('User "' . $user . '" does not exist. Please check the username and try again'); + return false; + } + $this->output->writeln('prepare encryption modules...'); if ($this->prepareEncryptionModules($user) === false) { return false; |