summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-12-16 16:49:23 +0100
committerGitHub <noreply@github.com>2022-12-16 16:49:23 +0100
commit7adfdf5248745b393e98ebfba0bdce6c2f0bfd84 (patch)
treedced245bf0b4fecf80c8c5deebb5b5e8fa75ce3f /lib
parentd33f707bfdc49d8cb7cf6ed954a8dbe4c97472e0 (diff)
parent2a864ec13c0f99eb75fa1b38642e23933832369b (diff)
downloadnextcloud-server-7adfdf5248745b393e98ebfba0bdce6c2f0bfd84.tar.gz
nextcloud-server-7adfdf5248745b393e98ebfba0bdce6c2f0bfd84.zip
Merge pull request #35537 from nextcloud/fix/dependency-injection-error
Improve dependency injection error message
Diffstat (limited to 'lib')
-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);
}
}