Skip to content

Commit 90ece4e

Browse files
a1812chalasr
andauthored
Update src/Symfony/Component/Cache/Traits/RedisTrait.php
Co-authored-by: Robin Chalas <chalasr@users.noreply.github.com>
1 parent 40a3f31 commit 90ece4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ public static function createConnection($dsn, array $options = [])
152152
$params['dbindex'] = $m[1];
153153
$params['path'] = substr($params['path'], 0, -\strlen($m[0]));
154154
} else {
155-
throw new InvalidArgumentException(sprintf('Invalid Redis DSN: "%s".', $dsn));
155+
throw new InvalidArgumentException(sprintf('Invalid Redis DSN: "%s", The "dbindex" parameter must be
156+
a number.', $dsn));
156157
}
157158
}
158159

0 commit comments

Comments
 (0)