Skip to content
Snippets Groups Projects
Commit 059fd87e authored by catch's avatar catch
Browse files

Issue #3457009 by ankitv18, quietone, joachim: Add input string to exception...

Issue #3457009 by ankitv18, quietone, joachim: Add input string to exception message thrown in createConnectionOptionsFromUrl()
parent 302ee049
No related branches found
No related tags found
No related merge requests found
...@@ -1322,7 +1322,7 @@ public function __sleep(): array { ...@@ -1322,7 +1322,7 @@ public function __sleep(): array {
public static function createConnectionOptionsFromUrl($url, $root) { public static function createConnectionOptionsFromUrl($url, $root) {
$url_components = parse_url($url); $url_components = parse_url($url);
if (!isset($url_components['scheme'], $url_components['host'], $url_components['path'])) { if (!isset($url_components['scheme'], $url_components['host'], $url_components['path'])) {
throw new \InvalidArgumentException('Minimum requirement: driver://host/database'); throw new \InvalidArgumentException("The database connection URL '$url' is invalid. The minimum requirement is: 'driver://host/database'");
} }
$url_components += [ $url_components += [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment