]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve error message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 Sep 2018 16:18:16 +0000 (17:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 28 Sep 2018 16:18:16 +0000 (17:18 +0100)
src/libutil/map.c

index d0fb9ff9e43dcba380063b9143167c2a050c82a4..9d9287137422ec999465308fc09c061e5c58f3ac 100644 (file)
@@ -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);
                }