Fix redis connection error message
Use correct instance of redis to getLastError
This commit is contained in:
parent
c4015edcfb
commit
f4e42ad3d4
@ -61,11 +61,11 @@ class Connection
|
||||
}
|
||||
|
||||
if (null !== $auth && !$this->connection->auth($auth)) {
|
||||
throw new InvalidArgumentException('Redis connection failed: '.$redis->getLastError());
|
||||
throw new InvalidArgumentException('Redis connection failed: '.$this->connection->getLastError());
|
||||
}
|
||||
|
||||
if (($dbIndex = $configuration['dbindex'] ?? self::DEFAULT_OPTIONS['dbindex']) && !$this->connection->select($dbIndex)) {
|
||||
throw new InvalidArgumentException('Redis connection failed: '.$redis->getLastError());
|
||||
throw new InvalidArgumentException('Redis connection failed: '.$this->connection->getLastError());
|
||||
}
|
||||
|
||||
foreach (['stream', 'group', 'consumer'] as $key) {
|
||||
|
Reference in New Issue
Block a user