Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show accurate list of supported drivers when throwing CannotCreateDbDumper exception #1661

Merged
merged 2 commits into from
Apr 25, 2023

Conversation

dejagersh
Copy link
Contributor

@dejagersh dejagersh commented Apr 25, 2023

When specifying a non-existent connection in config('backup.backup.source.databases'), it will throw the CannotCreateDbDumper exception. The current exception message states that only the default Laravel connection names are supported, which is misleading. In reality, any connection defined in config('database.connections') can be used, regardless of whether it is a standard Laravel connection name or not.

This PR modifies the exception message to display the actual available connection names that can be used. This will help users better understand which connections are valid options and reduce confusion.

image

@freekmurze freekmurze merged commit 381f56f into spatie:main Apr 25, 2023
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants