diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-03-01 17:49:20 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-03-01 17:49:20 +0100 |
commit | 31397debaf97b3b1688b922c81f2f39fff10295d (patch) | |
tree | 4bcc11a0333069fb56dd07c75e7a7ffec735a56e /core/Command/Encryption/ChangeKeyStorageRoot.php | |
parent | 5080080a3677fe0e67995634bda46de73b502713 (diff) | |
download | nextcloud-server-31397debaf97b3b1688b922c81f2f39fff10295d.tar.gz nextcloud-server-31397debaf97b3b1688b922c81f2f39fff10295d.zip |
fix check and improve error message
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/Command/Encryption/ChangeKeyStorageRoot.php')
-rw-r--r-- | core/Command/Encryption/ChangeKeyStorageRoot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Encryption/ChangeKeyStorageRoot.php b/core/Command/Encryption/ChangeKeyStorageRoot.php index 5fbef6a0c91..e2f01e1cb3c 100644 --- a/core/Command/Encryption/ChangeKeyStorageRoot.php +++ b/core/Command/Encryption/ChangeKeyStorageRoot.php @@ -146,8 +146,8 @@ class ChangeKeyStorageRoot extends Command { 'ownCloud will detect this folder as key storage root only if this file exists' ); - if ($result !== true) { - throw new \Exception("Can't write to new root folder. Please check the permissions and try again"); + if (!$result) { + throw new \Exception("Can't access the new root folder. Please check the permissions and make sure that the folder is in your data folder"); } } |