From 31397debaf97b3b1688b922c81f2f39fff10295d Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 1 Mar 2018 17:49:20 +0100 Subject: [PATCH] fix check and improve error message Signed-off-by: Bjoern Schiessle --- core/Command/Encryption/ChangeKeyStorageRoot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Command/Encryption/ChangeKeyStorageRoot.php b/core/Command/Encryption/ChangeKeyStorageRoot.php index 5fbef6a0c9..e2f01e1cb3 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"); } }