summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-12-01 12:46:01 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-12-01 12:46:01 +0100
commit2a864ec13c0f99eb75fa1b38642e23933832369b (patch)
tree288d6b9919403ceec61339a29582a16ba7ee129c
parent5f3585d8175bab56899883457313fafa442fc9dc (diff)
downloadnextcloud-server-2a864ec13c0f99eb75fa1b38642e23933832369b.tar.gz
nextcloud-server-2a864ec13c0f99eb75fa1b38642e23933832369b.zip
Improve dependency injection error message
Change from display the name of the parameter to the type of the parameter. This is that in most cases is usefull. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--lib/private/AppFramework/Utility/SimpleContainer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Utility/SimpleContainer.php b/lib/private/AppFramework/Utility/SimpleContainer.php
index da1efdec826..925ef67de64 100644
--- a/lib/private/AppFramework/Utility/SimpleContainer.php
+++ b/lib/private/AppFramework/Utility/SimpleContainer.php
@@ -108,7 +108,7 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
return $this->query($resolveName);
} catch (QueryException $e2) {
// don't lose the error we got while trying to query by type
- throw new QueryException($e2->getMessage(), (int) $e2->getCode(), $e);
+ throw new QueryException($e->getMessage(), (int) $e->getCode(), $e);
}
}