Problem/Motivation
> throw new \InvalidArgumentException('Minimum requirement: driver://host/database');
This is unclear.
Would be better as something like:
> throw new \InvalidArgumentException("The given database connection URL '$url' is badly formed. The minimum requirement is 'driver://host/database'.");
Steps to reproduce
Proposed resolution
Change the message to "The given database connection URL '$url' is invalid. The minimum requirement is: 'driver://host/database'"
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3457009
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ankitv18 commented@joachim target branch should be 11.x or 11.0.x?
Comment #4
ankitv18 commentedComment #5
joachim commented11.x, according to https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...
Comment #9
ankitv18 commentedMR!8539 is ready for a review.
Comment #10
ankitv18 commentedComment #11
vinmayiswamy commentedHi, I've verified MR 8539 in Drupal 11.x.
The change aligns with the requirement outlined in the issue and works as expected.
Since the code quality hasn't changed, +1 to RTBC.
Thanks!
Comment #12
quietone commentedThanks for working to improve the exception message!
Issues for Drupal should always have the 'proposed resolution' section complete and up to date as this is important information for reviewers and committers. I had updated that section.
The proposed new text uses the phrase 'badly formed', instead I think it would be simpler and clearer to say that it is 'invalid'. Plus, there are no instances of 'badly formed' in the code.
I have left a comment on the MR.
Comment #13
ankitv18 commentedThanks @quietone for reviewing the MR, I've updated as per suggestion.
Comment #14
smustgrave commentedFeedback appears to be addressed
Will note that the issue was tagged novice for newer users. And the issue was created just few weeks ago.
@ankitv18 based on your post history would definitely say probably have the skill set for non novice issues.
Now there is no official time frame around the tag but I say if it’s sat there for a month or two with no new user picking up its fair game.
Thanks
Comment #15
quietone commentedThanks this look much better now.
Leaving at RTBC
Comment #16
quietone commentedComment #19
catchCommitted/pushed to 11.x and cherry-picked back through to 10.3.x, thanks!