]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Log error in a more straightforward way
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Oct 2019 16:52:15 +0000 (17:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Oct 2019 16:52:15 +0000 (17:52 +0100)
src/lua/lua_redis.c

index 32fa554768cf4e719959194ec4b6f43cc8c631a1..1e9ac96709574aa0edbec5aee46359771c00d722 100644 (file)
@@ -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);