fix(redis): include host in connection error message

This commit is contained in:
2025-11-02 02:06:29 +01:00
parent 0d16417888
commit 70875be4b9

View File

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