Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-18 17:02:21 +0300
committerMaxence Lange <maxence@artificial-owl.com>2019-05-18 17:02:21 +0300
commit02babe6226d0612d4dfc775c9faea017057d97df (patch)
tree34dfc3f180e18c93d2ef2626a5f8f4547921d3b5
parentb5326f33aa7c6edbbe5862dc671630a2b98f5ddf (diff)
no exception on missing provider
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Service/ProviderService.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/Service/ProviderService.php b/lib/Service/ProviderService.php
index c79dc96..4f8ff6e 100644
--- a/lib/Service/ProviderService.php
+++ b/lib/Service/ProviderService.php
@@ -283,10 +283,6 @@ class ProviderService implements IProviderService {
/**
* @param string $appId
* @param array $providers
- *
- * @throws ProviderIsNotCompatibleException
- * @throws ProviderIsNotUniqueException
- * @throws QueryException
*/
private function loadProvidersFromList(string $appId, array $providers) {
$version = $this->configService->getCloudVersion();
@@ -308,7 +304,15 @@ class ProviderService implements IProviderService {
$provider = $provider['@value'];
}
- $this->loadProvider($appId, $provider);
+ try {
+ $this->loadProvider($appId, $provider);
+ } catch (Exception $e) {
+ $this->miscService->log(
+ 'Issue while loading Provider: ' . $appId . '/' . $provider . ' - ' . get_class(
+ $e
+ ) . ' ' . $e->getMessage()
+ );
+ }
}
}