From d2e90b6050d1c26cb365c81e987ccc1577ae56d0 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 21 Sep 2015 13:13:38 +0200 Subject: improved error message if user doesn't exists --- lib/private/encryption/decryptall.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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; -- cgit v1.2.3