fix check and improve error message
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
5080080a36
commit
31397debaf
1 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,8 @@ class ChangeKeyStorageRoot extends Command {
|
||||||
'ownCloud will detect this folder as key storage root only if this file exists'
|
'ownCloud will detect this folder as key storage root only if this file exists'
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result !== true) {
|
if (!$result) {
|
||||||
throw new \Exception("Can't write to new root folder. Please check the permissions and try again");
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue