diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-12-16 16:49:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 16:49:23 +0100 |
commit | 7adfdf5248745b393e98ebfba0bdce6c2f0bfd84 (patch) | |
tree | dced245bf0b4fecf80c8c5deebb5b5e8fa75ce3f /lib | |
parent | d33f707bfdc49d8cb7cf6ed954a8dbe4c97472e0 (diff) | |
parent | 2a864ec13c0f99eb75fa1b38642e23933832369b (diff) | |
download | nextcloud-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.php | 2 |
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); } } |