summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-28 17:18:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-28 17:18:16 +0100
commitc4265b7a25f438c8c9fa1c761d8b8bd2017977e2 (patch)
tree20c21bf51e5012220577cb67ad61a8f3aa576b13 /src
parent530c4f77443e3ef42e466b08e52137d234370e73 (diff)
downloadrspamd-c4265b7a25f438c8c9fa1c761d8b8bd2017977e2.tar.gz
rspamd-c4265b7a25f438c8c9fa1c761d8b8bd2017977e2.zip
[Minor] Improve error message
Diffstat (limited to 'src')
-rw-r--r--src/libutil/map.c3
1 files changed, 2 insertions, 1 deletions
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);
}