From da5496ebdfc9d6e66208def22f82c736462b1996 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 15 Mar 2023 15:50:42 +0100 Subject: [PATCH 1/2] Update discovery exception to include the exception message --- .../src/Foundation/Concerns/BaseFoundationCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Foundation/Concerns/BaseFoundationCollection.php b/packages/framework/src/Foundation/Concerns/BaseFoundationCollection.php index 300318cc9fd..c11dbe9c431 100644 --- a/packages/framework/src/Foundation/Concerns/BaseFoundationCollection.php +++ b/packages/framework/src/Foundation/Concerns/BaseFoundationCollection.php @@ -51,7 +51,7 @@ final public function boot(): static $this->runDiscovery(); $this->runExtensionHandlers(); } catch (Throwable $exception) { - throw new RuntimeException('An error occurred during the discovery process.', previous: $exception); + throw new RuntimeException("An error occurred during the discovery process: {$exception->getMessage()}", previous: $exception); } return $this; From 40782e7d129d004a1fb7a538be40587c15e055d8 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 15 Mar 2023 15:52:10 +0100 Subject: [PATCH 2/2] Update RELEASE_NOTES.md --- RELEASE_NOTES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index a159de01fc2..40e1ee49c28 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -13,7 +13,7 @@ This serves two purposes: - for new features. ### Changed -- for changes in existing functionality. +- Updated discovery exception message to include the causing exception message in https://github.com/hydephp/develop/pull/1305 ### Deprecated - for soon-to-be removed features.