fix(redis): include database in connection error message

This commit is contained in:
2025-11-02 02:04:28 +01:00
parent efbdbcb468
commit 0d16417888

View File

@@ -112,7 +112,7 @@ final class RedisConnection implements RedisConnectionInterface
$this->connected = false;
throw new RedisConnectionException(
"Failed to connect to Redis ({$this->name}): " . $e->getMessage(),
"Failed to connect to Redis ({$this->name}): " . $e->getMessage() . " with Database: {$this->config->database}",
previous: $e
);
}