]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont die when missing an auth backend
authorRobin Appelman <icewind@owncloud.com>
Wed, 17 Feb 2016 15:51:40 +0000 (16:51 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 17 Feb 2016 15:51:40 +0000 (16:51 +0100)
apps/files_external/service/storagesservice.php

index 678b91c01094583032cc1a64ed6e71ab720cf863..0a4c00c66ad6862706e1d62a8dcafd80a7f53a27 100644 (file)
@@ -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;
                }
        }