diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-28 17:18:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-28 17:18:16 +0100 |
commit | c4265b7a25f438c8c9fa1c761d8b8bd2017977e2 (patch) | |
tree | 20c21bf51e5012220577cb67ad61a8f3aa576b13 /src | |
parent | 530c4f77443e3ef42e466b08e52137d234370e73 (diff) | |
download | rspamd-c4265b7a25f438c8c9fa1c761d8b8bd2017977e2.tar.gz rspamd-c4265b7a25f438c8c9fa1c761d8b8bd2017977e2.zip |
[Minor] Improve error message
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/map.c | 3 |
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); } |