Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1305 from hydephp/update-discovery-exception-to-i…
Browse files Browse the repository at this point in the history
…nclude-message

Update discovery exception message to include the causing exception message
  • Loading branch information
caendesilva committed Mar 15, 2023
2 parents e7b7ece + 102224d commit 1eb533e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Expand Up @@ -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.
Expand Down
Expand Up @@ -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;
Expand Down

0 comments on commit 1eb533e

Please sign in to comment.