summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-17 16:51:40 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-17 16:51:40 +0100
commit65a283f9677a9bb394c23ab6460b1a6aad76cacf (patch)
treeca93234b53d2ca3f325a24e585dc5c9f04906934 /apps/files_external
parent4422f9c9ef755ef44385a2ed9e0c42f7d1c459d5 (diff)
downloadnextcloud-server-65a283f9677a9bb394c23ab6460b1a6aad76cacf.tar.gz
nextcloud-server-65a283f9677a9bb394c23ab6460b1a6aad76cacf.zip
dont die when missing an auth backend
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/service/storagesservice.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_external/service/storagesservice.php b/apps/files_external/service/storagesservice.php
index 678b91c0109..0a4c00c66ad 100644
--- a/apps/files_external/service/storagesservice.php
+++ b/apps/files_external/service/storagesservice.php
@@ -104,6 +104,13 @@ abstract class StoragesService {
\OCP\Util::ERROR
);
return null;
+ } catch (\InvalidArgumentException $e) {
+ \OCP\Util::writeLog(
+ 'files_external',
+ 'Could not load storage: "' . $e->getMessage() . '"',
+ \OCP\Util::ERROR
+ );
+ return null;
}
}