summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index 6a467e9eff2..e577510b69e 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -332,7 +332,11 @@ class File extends Node implements IFile {
// do a if the file did not exist
throw new NotFound();
}
- $res = $this->fileView->fopen(ltrim($this->path, '/'), 'rb');
+ try {
+ $res = $this->fileView->fopen(ltrim($this->path, '/'), 'rb');
+ } catch (\Exception $e) {
+ $this->convertToSabreException($e);
+ }
if ($res === false) {
throw new ServiceUnavailable("Could not open file");
}