summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-18 11:17:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-18 11:17:19 +0100
commit9d24de0ceb889c08ccd206437fa4718ae9f5d804 (patch)
tree932f7d86ace93eaa84246dcf61dabb61c0be27f6 /apps/files_external
parent3a97a0ad7fa14b803c2ecb55faf24607011eae6e (diff)
parent65a283f9677a9bb394c23ab6460b1a6aad76cacf (diff)
downloadnextcloud-server-9d24de0ceb889c08ccd206437fa4718ae9f5d804.tar.gz
nextcloud-server-9d24de0ceb889c08ccd206437fa4718ae9f5d804.zip
Merge pull request #22478 from owncloud/external-missing-auth
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;
}
}