Skip to content

Commit 5abad37

Browse files
committed
Merge pull request #491 from prathamesh-sonpatki/patch-1
Show the invalid URL in the exception message if host is not present
2 parents 67b3117 + 24b2a4d commit 5abad37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def _parse_options(options)
383383
defaults[:path] = uri.path
384384
elsif uri.scheme == "redis"
385385
# Require the URL to have at least a host
386-
raise ArgumentError, "invalid url" unless uri.host
386+
raise ArgumentError, "invalid url: #{uri}" unless uri.host
387387

388388
defaults[:scheme] = uri.scheme
389389
defaults[:host] = uri.host

0 commit comments

Comments
 (0)