summaryrefslogtreecommitdiffstats
path: root/core/Command/Encryption/ChangeKeyStorageRoot.php
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-03-01 17:49:20 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2018-03-01 17:49:20 +0100
commit31397debaf97b3b1688b922c81f2f39fff10295d (patch)
tree4bcc11a0333069fb56dd07c75e7a7ffec735a56e /core/Command/Encryption/ChangeKeyStorageRoot.php
parent5080080a3677fe0e67995634bda46de73b502713 (diff)
downloadnextcloud-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.php4
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");
}
}