From c4265b7a25f438c8c9fa1c761d8b8bd2017977e2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 28 Sep 2018 17:18:16 +0100 Subject: [PATCH] [Minor] Improve error message --- src/libutil/map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/map.c b/src/libutil/map.c index d0fb9ff9e..9d9287137 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1285,7 +1285,8 @@ rspamd_map_dns_callback (struct rdns_reply *reply, void *arg) } else { /* We could not resolve host, so cowardly fail here */ - msg_err_map ("cannot resolve %s", cbd->data->host); + msg_err_map ("cannot resolve %s: %s", cbd->data->host, + rdns_strerror (reply->code)); cbd->periodic->errored = 1; rspamd_map_periodic_callback (-1, EV_TIMEOUT, cbd->periodic); } -- 2.39.5