Skip to content
Snippets Groups Projects
Commit 60a8419a authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

when root storage cannot be mounted throw an exception visible to the end user

parent 1374ba9a
Branches
No related tags found
Loading
......@@ -93,7 +93,12 @@ class Mount {
try {
return $this->loader->load($this->mountPoint, $this->class, $this->arguments);
} catch (\Exception $exception) {
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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment