aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-11 22:13:27 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-18 12:53:20 +0200
commit60a8419a1f6472375c28f1c8f727c9f04ecb6b39 (patch)
tree62a76a5893db85338fa0ba8dd55719f3dab06dcb /lib/private/files
parent1374ba9adf3234222826beb1e069acdd34ab5126 (diff)
downloadnextcloud-server-60a8419a1f6472375c28f1c8f727c9f04ecb6b39.tar.gz
nextcloud-server-60a8419a1f6472375c28f1c8f727c9f04ecb6b39.zip
when root storage cannot be mounted throw an exception visible to the end user
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/mount/mount.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/private/files/mount/mount.php b/lib/private/files/mount/mount.php
index 04bccbcab87..48c9d88c23c 100644
--- a/lib/private/files/mount/mount.php
+++ b/lib/private/files/mount/mount.php
@@ -93,7 +93,12 @@ class Mount {
try {
return $this->loader->load($this->mountPoint, $this->class, $this->arguments);
} catch (\Exception $exception) {
- \OC_Log::write('core', $exception->getMessage(), \OC_Log::ERROR);
+ if ($this->mountPoint === '/') {
+ // the root storage could not be initialized, show the user!
+ throw new \Exception('The root storage could not be initialized. Please contact your local administrator.', $exception->getCode(), $exception);
+ } else {
+ \OC_Log::write('core', $exception->getMessage(), \OC_Log::ERROR);
+ }
return null;
}
} else {