Make redis JobQueueConnectionError mention the host
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 11 Dec 2015 02:34:21 +0000 (18:34 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Fri, 11 Dec 2015 21:39:02 +0000 (21:39 +0000)
Change-Id: I00a43265a65de9c9fa58b7046770d754b7d27815

includes/jobqueue/JobQueueRedis.php

index 67420f0..546093f 100644 (file)
@@ -749,7 +749,8 @@ LUA;
        protected function getConnection() {
                $conn = $this->redisPool->getConnection( $this->server );
                if ( !$conn ) {
-                       throw new JobQueueConnectionError( "Unable to connect to redis server." );
+                       throw new JobQueueConnectionError(
+                               "Unable to connect to redis server {$this->server}." );
                }
 
                return $conn;