From: Vsevolod Stakhov Date: Tue, 22 Oct 2019 16:52:15 +0000 (+0100) Subject: [Minor] Log error in a more straightforward way X-Git-Tag: 2.1~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9682b43caca49136bb18a3212b8defe2691b09ca;p=thirdparty%2Frspamd.git [Minor] Log error in a more straightforward way --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 32fa554768..1e9ac96709 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -999,7 +999,8 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref, gboolean is_asy ud->ctx = NULL; } else { - msg_err_task_check ("cannot connect to redis: unknown error"); + msg_err_task_check ("cannot connect to redis (OS error): %s", + strerror (errno)); } REDIS_RELEASE (ctx);