diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-05 20:33:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-05 20:33:25 +0000 |
commit | 1bd9b9af8556f1c7e107f703304923361056d3d0 (patch) | |
tree | c89f4837b22438d128e77265a8f3c537f0114106 /src/lua/lua_spf.c | |
parent | 4d5b9740d6b42140549ce6b2da3f3b704c4d620a (diff) | |
download | rspamd-1bd9b9af8556f1c7e107f703304923361056d3d0.tar.gz rspamd-1bd9b9af8556f1c7e107f703304923361056d3d0.zip |
[Minor] Improve error message
Diffstat (limited to 'src/lua/lua_spf.c')
-rw-r--r-- | src/lua/lua_spf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_spf.c b/src/lua/lua_spf.c index 6c3a47451..668c5ab58 100644 --- a/src/lua/lua_spf.c +++ b/src/lua/lua_spf.c @@ -171,12 +171,12 @@ spf_lua_lib_callback (struct spf_resolved *record, struct rspamd_task *task, if (record) { if ((record->flags & RSPAMD_SPF_RESOLVED_NA)) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_NA, NULL, - "no record found"); + "no SPF record found"); } else if (record->elts->len == 0) { if (record->flags & RSPAMD_SPF_RESOLVED_PERM_FAILED) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_PERM_FAILED, NULL, - "permanent resolution error"); + "bad SPF record"); } else if ((record->flags & RSPAMD_SPF_RESOLVED_TEMP_FAILED)) { lua_spf_push_result (cbd, RSPAMD_SPF_RESOLVED_TEMP_FAILED, NULL, |