Skip to content

Commit

Permalink
Add better error message for invalid hosts passed to connectRedis
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Nov 30, 2017
1 parent 57c3a61 commit a07105c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/vibe/db/redis/redis.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import std.utf;
*/
RedisClient connectRedis(string host, ushort port = RedisClient.defaultPort)
{
assert(!host.startsWith("redis://"));
assert(!host.startsWith("redis://", "Host must be a valid IP or domain, but not an URI."));
return new RedisClient(host, port);
}

Expand Down

0 comments on commit a07105c

Please sign in to comment.