put host in error message

This commit is contained in:
Henry Oswald 2019-05-30 14:36:54 +01:00
parent fd6d52eef7
commit d694674b78

View file

@ -45,7 +45,7 @@ module.exports = RedisSharelatex =
_checkClient: (client, callback) ->
callback = _.once(callback)
timer = setTimeout () ->
error = new Error("redis client ping check timed out")
error = new Error("redis client ping check timed out #{client?.options?.host}")
console.error {
err: error,
key: client.options?.key # only present for cluster