From: antirez Date: Tue, 20 Sep 2011 08:48:21 +0000 (+0200) Subject: Include port number in error when can't bind lisetning port on startup. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/eef17490d434658b63e1e410d1504e33fa6d5013?hp=--cc Include port number in error when can't bind lisetning port on startup. --- eef17490d434658b63e1e410d1504e33fa6d5013 diff --git a/src/redis.c b/src/redis.c index af750582..2018d13e 100644 --- a/src/redis.c +++ b/src/redis.c @@ -911,7 +911,8 @@ void initServer() { if (server.port != 0) { server.ipfd = anetTcpServer(server.neterr,server.port,server.bindaddr); if (server.ipfd == ANET_ERR) { - redisLog(REDIS_WARNING, "Opening port: %s", server.neterr); + redisLog(REDIS_WARNING, "Opening port %d: %s", + server.port, server.neterr); exit(1); } }