summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-09-21 18:32:15 +0200
committerRobin Appelman <robin@icewind.nl>2018-09-21 18:32:15 +0200
commitdccbdc8c012a2909fc71e9a23b70fe87e4f97f2b (patch)
tree0ad71784eefa9d0f3e9d2723ab2d0bd25d0ee3d5 /lib/private/AppFramework
parent0211e17e3fe7dd36ba9360de4cc70aaddfafa4c2 (diff)
downloadnextcloud-server-dccbdc8c012a2909fc71e9a23b70fe87e4f97f2b.tar.gz
nextcloud-server-dccbdc8c012a2909fc71e9a23b70fe87e4f97f2b.zip
only catch QueryException when trying to build class
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Utility/SimpleContainer.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php
index e96f24ed284..47a6f95f747 100644
--- a/lib/private/AppFramework/Utility/SimpleContainer.php
+++ b/lib/private/AppFramework/Utility/SimpleContainer.php
@@ -66,13 +66,7 @@ class SimpleContainer extends Container implements IContainer {
try {
$parameters[] = $this->query($resolveName);
- } catch (\Exception $e) {
- if (class_exists('PHPUnit_Framework_AssertionFailedError', false) &&
- $e instanceof \PHPUnit_Framework_AssertionFailedError) {
- // Easier debugging of "Your test case is not allowed to access the database."
- throw $e;
- }
-
+ } catch (QueryException $e) {
// Service not found, use the default value when available
if ($parameter->isDefaultValueAvailable()) {
$parameters[] = $parameter->getDefaultValue();